1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2020-08-06 20:53:30 UTC using RuboCop version 0.89.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.
8 # versions of RuboCop, may require this file to be generated again.
10 # Work around erblint issues.
11 # https://github.com/openstreetmap/openstreetmap-website/issues/2472
18 # Cop supports --auto-correct.
19 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
20 # URISchemes: http, https
25 # Configuration parameters: AllowSafeAssignment.
26 Lint/AssignmentInCondition:
28 - 'app/controllers/api/traces_controller.rb'
29 - 'app/controllers/api/user_preferences_controller.rb'
30 - 'app/controllers/application_controller.rb'
31 - 'app/controllers/geocoder_controller.rb'
32 - 'app/controllers/notes_controller.rb'
33 - 'app/controllers/traces_controller.rb'
34 - 'app/controllers/users_controller.rb'
35 - 'app/helpers/application_helper.rb'
36 - 'app/helpers/browse_tags_helper.rb'
37 - 'app/mailers/notifier.rb'
38 - 'app/models/client_application.rb'
41 - 'script/deliver-message'
44 # Configuration parameters: IgnoredMethods.
49 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
50 # ExcludedMethods: refine
55 # Configuration parameters: CountBlocks.
60 # Configuration parameters: CountComments, CountAsOne.
65 # Configuration parameters: IgnoredMethods.
66 Metrics/CyclomaticComplexity:
70 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
75 # Configuration parameters: CountKeywordArgs.
76 Metrics/ParameterLists:
80 # Configuration parameters: IgnoredMethods.
81 Metrics/PerceivedComplexity:
85 Minitest/MultipleAssertions:
89 # Cop supports --auto-correct.
90 Minitest/TestMethodName:
92 - 'test/abilities/api_capability_test.rb'
93 - 'test/controllers/api/nodes_controller_test.rb'
94 - 'test/controllers/api/old_nodes_controller_test.rb'
95 - 'test/controllers/api/relations_controller_test.rb'
96 - 'test/controllers/api/ways_controller_test.rb'
97 - 'test/helpers/browse_helper_test.rb'
98 - 'test/integration/client_applications_test.rb'
99 - 'test/integration/short_links_test.rb'
100 - 'test/integration/user_blocks_test.rb'
101 - 'test/integration/user_creation_test.rb'
104 Naming/AccessorMethodName:
106 - 'app/controllers/application_controller.rb'
107 - 'app/helpers/title_helper.rb'
108 - 'app/models/old_way.rb'
113 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
114 # NamePrefix: is_, has_, have_
115 # ForbiddenPrefixes: is_, has_, have_
116 # AllowedMethods: is_a?
117 # MethodDefinitionMacros: define_method, define_singleton_method
118 Naming/PredicateName:
121 - 'app/models/changeset.rb'
122 - 'app/models/old_node.rb'
123 - 'app/models/old_relation.rb'
124 - 'app/models/old_way.rb'
125 - 'app/models/user.rb'
126 - 'lib/classic_pagination/pagination.rb'
129 # Configuration parameters: Database, Include.
130 # SupportedDatabases: mysql, postgresql
131 # Include: db/migrate/*.rb
132 Rails/BulkChangeTable:
134 - 'db/migrate/20111116184519_update_oauth.rb'
135 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
136 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
139 # Configuration parameters: Include.
140 # Include: app/models/**/*.rb
141 Rails/HasAndBelongsToMany:
143 - 'app/models/changeset.rb'
144 - 'app/models/user.rb'
147 # Configuration parameters: Include.
148 # Include: app/helpers/**/*.rb
149 Rails/HelperInstanceVariable:
151 - 'app/helpers/title_helper.rb'
154 # Cop supports --auto-correct.
155 # Configuration parameters: Include.
156 # Include: app/mailers/**/*.rb
159 - 'app/mailers/notifier.rb'
162 # Configuration parameters: Include.
163 # Include: db/migrate/*.rb
166 - 'db/migrate/002_cleanup_osm_db.rb'
167 - 'db/migrate/020_populate_node_tags_and_remove.rb'
168 - 'db/migrate/021_move_to_innodb.rb'
169 - 'db/migrate/025_add_end_time_to_changesets.rb'
170 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
175 - 'app/controllers/users_controller.rb'
176 - 'app/helpers/application_helper.rb'
177 - 'app/helpers/changesets_helper.rb'
178 - 'app/helpers/geocoder_helper.rb'
179 - 'app/helpers/note_helper.rb'
180 - 'app/helpers/open_graph_helper.rb'
181 - 'app/helpers/user_blocks_helper.rb'
183 - 'test/helpers/application_helper_test.rb'
186 # Cop supports --auto-correct.
187 # Configuration parameters: EnforcedStyle.
188 # SupportedStyles: strict, flexible
193 # Cop supports --auto-correct.
194 Style/ExplicitBlockArgument:
196 - 'app/controllers/api/amf_controller.rb'
197 - 'app/controllers/application_controller.rb'
198 - 'app/mailers/notifier.rb'
199 - 'test/integration/client_applications_test.rb'
202 # Cop supports --auto-correct.
203 # Configuration parameters: EnforcedStyle.
204 # SupportedStyles: always, always_true, never
205 Style/FrozenStringLiteralComment:
209 # Cop supports --auto-correct.
210 # Configuration parameters: Strict.
211 Style/NumericLiterals:
215 Style/OptionalBooleanParameter:
217 - 'app/controllers/api/notes_controller.rb'
218 - 'app/controllers/application_controller.rb'
219 - 'app/helpers/browse_helper.rb'
220 - 'app/models/changeset.rb'
221 - 'app/models/node.rb'
222 - 'app/models/relation.rb'
223 - 'app/models/trace.rb'
224 - 'app/models/tracepoint.rb'
225 - 'app/models/way.rb'
226 - 'test/models/diary_entry_test.rb'
227 - 'test/models/trace_test.rb'
228 - 'test/models/tracetag_test.rb'
231 # Cop supports --auto-correct.
232 Style/StringConcatenation: