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'
46 - 'config/initializers/oauth.rb'
48 - 'lib/session_persistence.rb'
51 # Configuration parameters: IgnoredMethods.
56 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
57 # ExcludedMethods: refine
62 # Configuration parameters: CountBlocks.
67 # Configuration parameters: CountComments, CountAsOne.
72 # Configuration parameters: IgnoredMethods.
73 Metrics/CyclomaticComplexity:
77 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
82 # Configuration parameters: CountKeywordArgs.
83 Metrics/ParameterLists:
87 # Configuration parameters: IgnoredMethods.
88 Metrics/PerceivedComplexity:
92 Minitest/MultipleAssertions:
96 # Cop supports --auto-correct.
97 Minitest/TestMethodName:
99 - 'test/abilities/api_capability_test.rb'
100 - 'test/controllers/api/nodes_controller_test.rb'
101 - 'test/controllers/api/old_nodes_controller_test.rb'
102 - 'test/controllers/api/relations_controller_test.rb'
103 - 'test/controllers/api/ways_controller_test.rb'
104 - 'test/helpers/browse_helper_test.rb'
105 - 'test/integration/client_applications_test.rb'
106 - 'test/integration/short_links_test.rb'
107 - 'test/integration/user_blocks_test.rb'
108 - 'test/integration/user_creation_test.rb'
111 Naming/AccessorMethodName:
113 - 'app/controllers/application_controller.rb'
114 - 'app/helpers/title_helper.rb'
115 - 'app/models/old_way.rb'
120 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
121 # NamePrefix: is_, has_, have_
122 # ForbiddenPrefixes: is_, has_, have_
123 # AllowedMethods: is_a?
124 # MethodDefinitionMacros: define_method, define_singleton_method
125 Naming/PredicateName:
128 - 'app/models/changeset.rb'
129 - 'app/models/old_node.rb'
130 - 'app/models/old_relation.rb'
131 - 'app/models/old_way.rb'
132 - 'app/models/user.rb'
133 - 'lib/classic_pagination/pagination.rb'
136 # Configuration parameters: Database, Include.
137 # SupportedDatabases: mysql, postgresql
138 # Include: db/migrate/*.rb
139 Rails/BulkChangeTable:
141 - 'db/migrate/20111116184519_update_oauth.rb'
142 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
143 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
146 # Configuration parameters: Include.
147 # Include: app/models/**/*.rb
148 Rails/HasAndBelongsToMany:
150 - 'app/models/changeset.rb'
151 - 'app/models/user.rb'
154 # Configuration parameters: Include.
155 # Include: app/helpers/**/*.rb
156 Rails/HelperInstanceVariable:
158 - 'app/helpers/title_helper.rb'
161 # Cop supports --auto-correct.
162 # Configuration parameters: Include.
163 # Include: app/mailers/**/*.rb
166 - 'app/mailers/notifier.rb'
169 # Configuration parameters: Include.
170 # Include: db/migrate/*.rb
173 - 'db/migrate/002_cleanup_osm_db.rb'
174 - 'db/migrate/020_populate_node_tags_and_remove.rb'
175 - 'db/migrate/021_move_to_innodb.rb'
176 - 'db/migrate/025_add_end_time_to_changesets.rb'
177 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
182 - 'app/controllers/users_controller.rb'
183 - 'app/helpers/application_helper.rb'
184 - 'app/helpers/changesets_helper.rb'
185 - 'app/helpers/geocoder_helper.rb'
186 - 'app/helpers/note_helper.rb'
187 - 'app/helpers/open_graph_helper.rb'
188 - 'app/helpers/user_blocks_helper.rb'
190 - 'test/helpers/application_helper_test.rb'
193 # Cop supports --auto-correct.
194 # Configuration parameters: EnforcedStyle.
195 # SupportedStyles: strict, flexible
200 # Cop supports --auto-correct.
201 Style/ExplicitBlockArgument:
203 - 'app/controllers/api/amf_controller.rb'
204 - 'app/controllers/application_controller.rb'
205 - 'app/mailers/notifier.rb'
206 - 'test/integration/client_applications_test.rb'
209 # Cop supports --auto-correct.
210 # Configuration parameters: EnforcedStyle.
211 # SupportedStyles: always, always_true, never
212 Style/FrozenStringLiteralComment:
216 # Cop supports --auto-correct.
217 # Configuration parameters: Strict.
218 Style/NumericLiterals:
222 Style/OptionalBooleanParameter:
224 - 'app/controllers/api/notes_controller.rb'
225 - 'app/controllers/application_controller.rb'
226 - 'app/helpers/browse_helper.rb'
227 - 'app/models/changeset.rb'
228 - 'app/models/node.rb'
229 - 'app/models/relation.rb'
230 - 'app/models/trace.rb'
231 - 'app/models/tracepoint.rb'
232 - 'app/models/way.rb'
233 - 'test/models/diary_entry_test.rb'
234 - 'test/models/trace_test.rb'
235 - 'test/models/tracetag_test.rb'
238 # Cop supports --auto-correct.
239 Style/StringConcatenation: