1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2022-02-23 19:11:04 UTC using RuboCop version 1.25.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.
9 # Work around erblint issues.
10 # https://github.com/openstreetmap/openstreetmap-website/issues/2472
18 # Cop supports --auto-correct.
19 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
20 # URISchemes: http, https
25 # Cop supports --auto-correct.
26 Lint/AmbiguousOperatorPrecedence:
28 - 'app/controllers/geocoder_controller.rb'
29 - 'app/models/user.rb'
30 - 'lib/bounding_box.rb'
34 - 'test/controllers/api/old_nodes_controller_test.rb'
35 - 'test/lib/short_link_test.rb'
38 # Configuration parameters: AllowSafeAssignment.
39 Lint/AssignmentInCondition:
41 - 'app/controllers/accounts_controller.rb'
42 - 'app/controllers/api/traces_controller.rb'
43 - 'app/controllers/api/user_preferences_controller.rb'
44 - 'app/controllers/application_controller.rb'
45 - 'app/controllers/geocoder_controller.rb'
46 - 'app/controllers/notes_controller.rb'
47 - 'app/controllers/traces_controller.rb'
48 - 'app/controllers/users_controller.rb'
49 - 'app/helpers/application_helper.rb'
50 - 'app/helpers/browse_tags_helper.rb'
51 - 'app/mailers/user_mailer.rb'
52 - 'app/models/client_application.rb'
55 - 'script/deliver-message'
58 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
61 - 'app/controllers/api_controller.rb'
62 - 'app/controllers/diary_entries_controller.rb'
63 - 'app/controllers/geocoder_controller.rb'
64 - 'app/helpers/browse_tags_helper.rb'
67 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
72 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
73 # IgnoredMethods: refine
78 # Configuration parameters: CountBlocks.
83 # Configuration parameters: CountComments, CountAsOne.
88 # Configuration parameters: IgnoredMethods.
89 Metrics/CyclomaticComplexity:
93 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
98 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
99 Metrics/ParameterLists:
103 # Configuration parameters: IgnoredMethods.
104 Metrics/PerceivedComplexity:
108 Minitest/MultipleAssertions:
112 Naming/AccessorMethodName:
114 - 'app/controllers/application_controller.rb'
115 - 'app/helpers/title_helper.rb'
119 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
120 # NamePrefix: is_, has_, have_
121 # ForbiddenPrefixes: is_, has_, have_
122 # AllowedMethods: is_a?
123 # MethodDefinitionMacros: define_method, define_singleton_method
124 Naming/PredicateName:
126 - 'app/models/user.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 # Configuration parameters: IgnoreScopes, Include.
155 # Include: app/models/**/*.rb
158 - 'app/models/changeset.rb'
159 - 'app/models/diary_entry.rb'
160 - 'app/models/friendship.rb'
161 - 'app/models/issue.rb'
162 - 'app/models/message.rb'
163 - 'app/models/note.rb'
164 - 'app/models/user.rb'
167 # Configuration parameters: Include.
168 # Include: app/controllers/**/*.rb
169 Rails/LexicallyScopedActionFilter:
171 - 'app/controllers/oauth2_applications_controller.rb'
172 - 'app/controllers/oauth2_authorizations_controller.rb'
175 # Configuration parameters: Include.
176 # Include: db/migrate/*.rb
179 - 'db/migrate/002_cleanup_osm_db.rb'
180 - 'db/migrate/020_populate_node_tags_and_remove.rb'
181 - 'db/migrate/021_move_to_innodb.rb'
182 - 'db/migrate/025_add_end_time_to_changesets.rb'
183 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
188 - 'app/controllers/sessions_controller.rb'
189 - 'app/controllers/users_controller.rb'
190 - 'app/helpers/application_helper.rb'
192 - 'test/helpers/application_helper_test.rb'
195 # Cop supports --auto-correct.
198 - 'lib/tasks/auto_annotate_models.rake'
199 - 'lib/tasks/eslint.rake'
200 - 'lib/tasks/subscribe_diary_authors.rake'
201 - 'lib/tasks/subscribe_old_changesets.rake'
204 # Cop supports --auto-correct.
205 # Configuration parameters: EnforcedStyle.
206 # SupportedStyles: always, always_true, never
207 Style/FrozenStringLiteralComment:
211 # Cop supports --auto-correct.
212 # Configuration parameters: Strict, AllowedNumbers.
213 Style/NumericLiterals: