]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Remove test fixtures.
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2016-10-20 21:45:27 +0100 using RuboCop version 0.44.1.
4 # The point is for the user to remove these configuration records
5 # one by one as the offenses are removed from the code base.
6 # Note that changes in the inspected code, or installation of new
7 # versions of RuboCop, may require this file to be generated again.
8
9 # Offense count: 34
10 Lint/AmbiguousOperator:
11   Exclude:
12     - 'test/controllers/amf_controller_test.rb'
13     - 'test/controllers/changeset_controller_test.rb'
14     - 'test/lib/bounding_box_test.rb'
15     - 'test/lib/country_test.rb'
16
17 # Offense count: 117
18 Lint/AmbiguousRegexpLiteral:
19   Enabled: false
20
21 # Offense count: 30
22 # Configuration parameters: AllowSafeAssignment.
23 Lint/AssignmentInCondition:
24   Exclude:
25     - 'app/controllers/application_controller.rb'
26     - 'app/controllers/geocoder_controller.rb'
27     - 'app/controllers/notes_controller.rb'
28     - 'app/controllers/trace_controller.rb'
29     - 'app/controllers/user_controller.rb'
30     - 'app/controllers/user_preference_controller.rb'
31     - 'app/helpers/application_helper.rb'
32     - 'app/helpers/browse_helper.rb'
33     - 'app/models/client_application.rb'
34     - 'app/models/notifier.rb'
35     - 'lib/nominatim.rb'
36     - 'lib/osm.rb'
37     - 'script/deliver-message'
38
39 # Offense count: 5
40 Lint/HandleExceptions:
41   Exclude:
42     - 'app/controllers/amf_controller.rb'
43     - 'app/controllers/user_controller.rb'
44     - 'config/initializers/session.rb'
45
46 # Offense count: 2
47 Lint/ShadowingOuterLocalVariable:
48   Exclude:
49     - 'app/views/changeset/list.atom.builder'
50
51 # Offense count: 630
52 Metrics/AbcSize:
53   Max: 280
54
55 # Offense count: 35
56 # Configuration parameters: CountComments.
57 Metrics/BlockLength:
58   Max: 295
59
60 # Offense count: 12
61 Metrics/BlockNesting:
62   Max: 5
63
64 # Offense count: 62
65 # Configuration parameters: CountComments.
66 Metrics/ClassLength:
67   Max: 1781
68
69 # Offense count: 69
70 Metrics/CyclomaticComplexity:
71   Max: 20
72
73 # Offense count: 2826
74 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
75 # URISchemes: http, https
76 Metrics/LineLength:
77   Max: 1072
78
79 # Offense count: 612
80 # Configuration parameters: CountComments.
81 Metrics/MethodLength:
82   Max: 179
83
84 # Offense count: 1
85 # Configuration parameters: CountComments.
86 Metrics/ModuleLength:
87   Max: 147
88
89 # Offense count: 4
90 # Configuration parameters: CountKeywordArgs.
91 Metrics/ParameterLists:
92   Max: 9
93
94 # Offense count: 71
95 Metrics/PerceivedComplexity:
96   Max: 23
97
98 # Offense count: 2
99 # Configuration parameters: Include.
100 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
101 Rails/Exit:
102   Exclude:
103     - 'lib/**/*.rake'
104     - 'lib/daemons/gpx_import.rb'
105
106 # Offense count: 2
107 # Configuration parameters: Include.
108 # Include: app/models/**/*.rb
109 Rails/HasAndBelongsToMany:
110   Exclude:
111     - 'app/models/changeset.rb'
112     - 'app/models/user.rb'
113
114 # Offense count: 5
115 # Configuration parameters: Include.
116 # Include: db/migrate/*.rb
117 Rails/NotNullColumn:
118   Exclude:
119     - 'db/migrate/002_cleanup_osm_db.rb'
120     - 'db/migrate/020_populate_node_tags_and_remove.rb'
121     - 'db/migrate/021_move_to_innodb.rb'
122     - 'db/migrate/025_add_end_time_to_changesets.rb'
123     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
124
125 # Offense count: 17
126 Rails/OutputSafety:
127   Exclude:
128     - 'app/controllers/user_controller.rb'
129     - 'app/helpers/application_helper.rb'
130     - 'app/helpers/changeset_helper.rb'
131     - 'app/helpers/geocoder_helper.rb'
132     - 'app/helpers/note_helper.rb'
133     - 'app/helpers/open_graph_helper.rb'
134     - 'app/helpers/user_blocks_helper.rb'
135     - 'app/helpers/user_roles_helper.rb'
136     - 'lib/rich_text.rb'
137     - 'test/helpers/application_helper_test.rb'
138
139 # Offense count: 74
140 # Configuration parameters: EnforcedStyle, SupportedStyles.
141 # SupportedStyles: strict, flexible
142 Rails/TimeZone:
143   Enabled: false
144
145 # Offense count: 5
146 Style/AccessorMethodName:
147   Exclude:
148     - 'app/controllers/application_controller.rb'
149     - 'app/helpers/title_helper.rb'
150     - 'app/models/old_way.rb'
151     - 'lib/osm.rb'
152     - 'lib/potlatch.rb'
153
154 # Offense count: 1
155 Style/AsciiComments:
156   Exclude:
157     - 'test/models/message_test.rb'
158
159 # Offense count: 220
160 Style/Documentation:
161   Enabled: false
162
163 # Offense count: 1
164 # Cop supports --auto-correct.
165 # Configuration parameters: MaxLineLength.
166 Style/IfUnlessModifier:
167   Exclude:
168     - 'app/controllers/way_controller.rb'
169
170 # Offense count: 60
171 # Cop supports --auto-correct.
172 Style/LineEndConcatenation:
173   Exclude:
174     - 'db/migrate/008_remove_segments.rb'
175     - 'db/migrate/020_populate_node_tags_and_remove.rb'
176     - 'db/migrate/023_add_changesets.rb'
177     - 'lib/bounding_box.rb'
178     - 'lib/diff_reader.rb'
179     - 'lib/osm.rb'
180     - 'test/controllers/changeset_controller_test.rb'
181     - 'test/controllers/node_controller_test.rb'
182     - 'test/controllers/relation_controller_test.rb'
183     - 'test/controllers/way_controller_test.rb'
184
185 # Offense count: 71
186 # Cop supports --auto-correct.
187 Style/NumericLiterals:
188   MinDigits: 11
189
190 # Offense count: 8
191 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
192 # NamePrefix: is_, has_, have_
193 # NamePrefixBlacklist: is_, has_, have_
194 # NameWhitelist: is_a?
195 Style/PredicateName:
196   Exclude:
197     - 'spec/**/*'
198     - 'app/models/changeset.rb'
199     - 'app/models/old_node.rb'
200     - 'app/models/old_relation.rb'
201     - 'app/models/old_way.rb'
202     - 'app/models/user.rb'
203     - 'lib/classic_pagination/pagination.rb'
204
205 # Offense count: 97
206 # Cop supports --auto-correct.
207 # Configuration parameters: EnforcedStyle, SupportedStyles.
208 # SupportedStyles: compact, exploded
209 Style/RaiseArgs:
210   Enabled: false
211
212 # Offense count: 2
213 # Cop supports --auto-correct.
214 Style/RescueModifier:
215   Exclude:
216     - 'app/helpers/browse_helper.rb'