1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2020-09-02 06:16:56 UTC using RuboCop version 0.90.0.
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.
9 # Work around erblint issues.
10 # https://github.com/openstreetmap/openstreetmap-website/issues/2472
17 # Cop supports --auto-correct.
18 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
19 # URISchemes: http, https
24 # Configuration parameters: AllowSafeAssignment.
25 Lint/AssignmentInCondition:
27 - 'app/controllers/api/traces_controller.rb'
28 - 'app/controllers/api/user_preferences_controller.rb'
29 - 'app/controllers/application_controller.rb'
30 - 'app/controllers/geocoder_controller.rb'
31 - 'app/controllers/notes_controller.rb'
32 - 'app/controllers/traces_controller.rb'
33 - 'app/controllers/users_controller.rb'
34 - 'app/helpers/application_helper.rb'
35 - 'app/helpers/browse_tags_helper.rb'
36 - 'app/mailers/notifier.rb'
37 - 'app/models/client_application.rb'
40 - 'script/deliver-message'
43 # Configuration parameters: IgnoredMethods.
48 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
49 # ExcludedMethods: refine
54 # Configuration parameters: CountBlocks.
59 # Configuration parameters: CountComments, CountAsOne.
64 # Configuration parameters: IgnoredMethods.
65 Metrics/CyclomaticComplexity:
69 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
74 # Configuration parameters: CountKeywordArgs.
75 Metrics/ParameterLists:
79 # Configuration parameters: IgnoredMethods.
80 Metrics/PerceivedComplexity:
84 Minitest/MultipleAssertions:
88 # Cop supports --auto-correct.
89 Minitest/TestMethodName:
91 - 'test/abilities/api_capability_test.rb'
92 - 'test/controllers/api/nodes_controller_test.rb'
93 - 'test/controllers/api/old_nodes_controller_test.rb'
94 - 'test/controllers/api/relations_controller_test.rb'
95 - 'test/controllers/api/ways_controller_test.rb'
96 - 'test/helpers/browse_helper_test.rb'
97 - 'test/integration/client_applications_test.rb'
98 - 'test/integration/short_links_test.rb'
99 - 'test/integration/user_blocks_test.rb'
100 - 'test/integration/user_creation_test.rb'
103 Naming/AccessorMethodName:
105 - 'app/controllers/application_controller.rb'
106 - 'app/helpers/title_helper.rb'
107 - 'app/models/old_way.rb'
112 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
113 # NamePrefix: is_, has_, have_
114 # ForbiddenPrefixes: is_, has_, have_
115 # AllowedMethods: is_a?
116 # MethodDefinitionMacros: define_method, define_singleton_method
117 Naming/PredicateName:
120 - 'app/models/changeset.rb'
121 - 'app/models/old_node.rb'
122 - 'app/models/old_relation.rb'
123 - 'app/models/old_way.rb'
124 - 'app/models/user.rb'
125 - 'lib/classic_pagination/pagination.rb'
128 # Configuration parameters: Database, Include.
129 # SupportedDatabases: mysql, postgresql
130 # Include: db/migrate/*.rb
131 Rails/BulkChangeTable:
133 - 'db/migrate/20111116184519_update_oauth.rb'
134 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
135 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
138 # Configuration parameters: Include.
139 # Include: app/models/**/*.rb
140 Rails/HasAndBelongsToMany:
142 - 'app/models/changeset.rb'
143 - 'app/models/user.rb'
146 # Configuration parameters: Include.
147 # Include: app/helpers/**/*.rb
148 Rails/HelperInstanceVariable:
150 - 'app/helpers/title_helper.rb'
153 # Cop supports --auto-correct.
154 # Configuration parameters: Include.
155 # Include: app/mailers/**/*.rb
158 - 'app/mailers/notifier.rb'
161 # Configuration parameters: Include.
162 # Include: db/migrate/*.rb
165 - 'db/migrate/002_cleanup_osm_db.rb'
166 - 'db/migrate/020_populate_node_tags_and_remove.rb'
167 - 'db/migrate/021_move_to_innodb.rb'
168 - 'db/migrate/025_add_end_time_to_changesets.rb'
169 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
174 - 'app/controllers/users_controller.rb'
175 - 'app/helpers/application_helper.rb'
176 - 'app/helpers/changesets_helper.rb'
177 - 'app/helpers/geocoder_helper.rb'
178 - 'app/helpers/note_helper.rb'
179 - 'app/helpers/open_graph_helper.rb'
180 - 'app/helpers/user_blocks_helper.rb'
182 - 'test/helpers/application_helper_test.rb'
185 # Cop supports --auto-correct.
186 # Configuration parameters: EnforcedStyle.
187 # SupportedStyles: strict, flexible
192 Style/CombinableLoops:
194 - 'db/migrate/021_move_to_innodb.rb'
197 # Cop supports --auto-correct.
198 # Configuration parameters: EnforcedStyle.
199 # SupportedStyles: always, always_true, never
200 Style/FrozenStringLiteralComment:
204 # Cop supports --auto-correct.
205 # Configuration parameters: Strict.
206 Style/NumericLiterals:
210 Style/OptionalBooleanParameter:
212 - 'app/controllers/api/notes_controller.rb'
213 - 'app/controllers/application_controller.rb'
214 - 'app/helpers/browse_helper.rb'
215 - 'app/models/changeset.rb'
216 - 'app/models/node.rb'
217 - 'app/models/relation.rb'
218 - 'app/models/trace.rb'
219 - 'app/models/tracepoint.rb'
220 - 'app/models/way.rb'
221 - 'test/models/diary_entry_test.rb'
222 - 'test/models/trace_test.rb'
223 - 'test/models/tracetag_test.rb'
226 # Configuration parameters: AllowModifier.
227 Style/SoleNestedConditional:
229 - 'app/controllers/user_blocks_controller.rb'
230 - 'app/models/old_way.rb'
231 - 'app/validators/characters_validator.rb'
232 - 'app/validators/whitespace_validator.rb'
233 - 'lib/classic_pagination/pagination.rb'
236 # Cop supports --auto-correct.
237 Style/StringConcatenation: