1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2023-04-11 16:47:05 UTC using RuboCop version 1.50.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
18 # Configuration parameters: Include, MaxAmount
19 FactoryBot/ExcessiveCreateList:
23 # This cop supports safe autocorrection (--autocorrect).
24 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
25 # URISchemes: http, https
30 # This cop supports unsafe autocorrection (--autocorrect-all).
31 # Configuration parameters: AllowSafeAssignment.
32 Lint/AssignmentInCondition:
34 - 'app/controllers/accounts_controller.rb'
35 - 'app/controllers/api/traces_controller.rb'
36 - 'app/controllers/api/user_preferences_controller.rb'
37 - 'app/controllers/application_controller.rb'
38 - 'app/controllers/geocoder_controller.rb'
39 - 'app/controllers/notes_controller.rb'
40 - 'app/controllers/traces_controller.rb'
41 - 'app/controllers/users_controller.rb'
42 - 'app/helpers/application_helper.rb'
43 - 'app/helpers/browse_tags_helper.rb'
44 - 'app/mailers/user_mailer.rb'
45 - 'app/models/client_application.rb'
48 - 'script/deliver-message'
51 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
56 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
57 # AllowedMethods: refine
62 # Configuration parameters: CountBlocks.
67 # Configuration parameters: CountComments, CountAsOne.
72 # Configuration parameters: AllowedMethods, AllowedPatterns.
73 Metrics/CyclomaticComplexity:
77 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
82 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
83 Metrics/ParameterLists:
87 # Configuration parameters: AllowedMethods, AllowedPatterns.
88 Metrics/PerceivedComplexity:
92 # This cop supports safe autocorrection (--autocorrect).
93 Minitest/EmptyLineBeforeAssertionMethods:
97 Minitest/MultipleAssertions:
101 # This cop supports unsafe autocorrection (--autocorrect-all).
102 Rails/ActionControllerFlashBeforeRender:
104 - 'app/controllers/traces_controller.rb'
107 # Configuration parameters: Database, Include.
108 # SupportedDatabases: mysql, postgresql
109 # Include: db/migrate/*.rb
110 Rails/BulkChangeTable:
112 - 'db/migrate/20111116184519_update_oauth.rb'
113 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
114 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
117 # Configuration parameters: Include.
118 # Include: app/models/**/*.rb
119 Rails/HasAndBelongsToMany:
121 - 'app/models/changeset.rb'
122 - 'app/models/user.rb'
125 # Configuration parameters: Include.
126 # Include: app/helpers/**/*.rb
127 Rails/HelperInstanceVariable:
129 - 'app/helpers/title_helper.rb'
132 # Configuration parameters: IgnoreScopes, Include.
133 # Include: app/models/**/*.rb
136 - 'app/models/changeset.rb'
137 - 'app/models/diary_entry.rb'
138 - 'app/models/friendship.rb'
139 - 'app/models/issue.rb'
140 - 'app/models/message.rb'
141 - 'app/models/note.rb'
142 - 'app/models/user.rb'
145 # Configuration parameters: Include.
146 # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
147 Rails/LexicallyScopedActionFilter:
149 - 'app/controllers/oauth2_applications_controller.rb'
150 - 'app/controllers/oauth2_authorizations_controller.rb'
153 # Configuration parameters: Include.
154 # Include: db/migrate/*.rb
157 - 'db/migrate/002_cleanup_osm_db.rb'
158 - 'db/migrate/020_populate_node_tags_and_remove.rb'
159 - 'db/migrate/021_move_to_innodb.rb'
160 - 'db/migrate/025_add_end_time_to_changesets.rb'
161 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
166 - 'app/helpers/application_helper.rb'
168 - 'test/helpers/application_helper_test.rb'
171 # Configuration parameters: Include.
172 # Include: db/**/*.rb
173 Rails/ThreeStateBooleanColumn:
175 - 'db/migrate/001_create_osm_db.rb'
176 - 'db/migrate/006_tile_nodes.rb'
177 - 'db/migrate/007_add_relations.rb'
178 - 'db/migrate/054_refactor_map_bug_tables.rb'
179 - 'db/migrate/20140507110937_create_changeset_comments.rb'
182 # This cop supports safe autocorrection (--autocorrect).
185 - 'lib/tasks/auto_annotate_models.rake'
186 - 'lib/tasks/eslint.rake'
187 - 'lib/tasks/subscribe_diary_authors.rake'
188 - 'lib/tasks/subscribe_old_changesets.rake'
191 # This cop supports unsafe autocorrection (--autocorrect-all).
192 # Configuration parameters: EnforcedStyle.
193 # SupportedStyles: always, always_true, never
194 Style/FrozenStringLiteralComment:
198 # This cop supports safe autocorrection (--autocorrect).
199 # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
200 Style/NumericLiterals: