1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2024-08-27 18:01:13 UTC using RuboCop version 1.65.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.
10 # Configuration parameters: Include, MaxAmount.
11 # Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
12 FactoryBot/ExcessiveCreateList:
14 - 'test/controllers/api/changeset_comments_controller_test.rb'
15 - 'test/controllers/api/messages/inboxes_controller_test.rb'
16 - 'test/controllers/api/messages/outboxes_controller_test.rb'
17 - 'test/controllers/changesets_controller_test.rb'
18 - 'test/controllers/diary_entries_controller_test.rb'
19 - 'test/controllers/notes_controller_test.rb'
20 - 'test/controllers/traces_controller_test.rb'
21 - 'test/controllers/user_blocks_controller_test.rb'
22 - 'test/controllers/users/issued_blocks_controller_test.rb'
23 - 'test/controllers/users/received_blocks_controller_test.rb'
24 - 'test/system/users_test.rb'
27 # This cop supports safe autocorrection (--autocorrect).
28 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
29 # URISchemes: http, https
34 # This cop supports unsafe autocorrection (--autocorrect-all).
35 # Configuration parameters: AllowSafeAssignment.
36 Lint/AssignmentInCondition:
38 - 'app/controllers/accounts_controller.rb'
39 - 'app/controllers/api/traces_controller.rb'
40 - 'app/controllers/api/user_preferences_controller.rb'
41 - 'app/controllers/geocoder_controller.rb'
42 - 'app/controllers/traces_controller.rb'
43 - 'app/controllers/users_controller.rb'
44 - 'app/helpers/application_helper.rb'
45 - 'app/helpers/browse_tags_helper.rb'
46 - 'app/mailers/user_mailer.rb'
49 - 'script/deliver-message'
52 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
57 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
58 # AllowedMethods: refine
63 # Configuration parameters: CountBlocks, CountModifierForms.
68 # Configuration parameters: CountComments, CountAsOne.
73 # Configuration parameters: AllowedMethods, AllowedPatterns.
74 Metrics/CyclomaticComplexity:
78 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
83 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
84 Metrics/ParameterLists:
88 # Configuration parameters: AllowedMethods, AllowedPatterns.
89 Metrics/PerceivedComplexity:
93 # This cop supports safe autocorrection (--autocorrect).
94 Minitest/EmptyLineBeforeAssertionMethods:
98 Minitest/MultipleAssertions:
102 # Configuration parameters: Include.
103 # Include: app/models/**/*.rb
104 Rails/HasAndBelongsToMany:
106 - 'app/models/changeset.rb'
107 - 'app/models/user.rb'
110 # Configuration parameters: Include.
111 # Include: app/helpers/**/*.rb
112 Rails/HelperInstanceVariable:
114 - 'app/helpers/title_helper.rb'
117 # Configuration parameters: IgnoreScopes, Include.
118 # Include: app/models/**/*.rb
121 - 'app/models/changeset.rb'
122 - 'app/models/diary_entry.rb'
123 - 'app/models/issue.rb'
124 - 'app/models/message.rb'
125 - 'app/models/note.rb'
126 - 'app/models/user.rb'
129 # Configuration parameters: Include.
130 # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
131 Rails/LexicallyScopedActionFilter:
133 - 'app/controllers/oauth2_applications_controller.rb'
136 # Configuration parameters: Database, Include.
137 # SupportedDatabases: mysql
138 # Include: db/**/*.rb
141 - 'db/migrate/002_cleanup_osm_db.rb'
142 - 'db/migrate/020_populate_node_tags_and_remove.rb'
143 - 'db/migrate/021_move_to_innodb.rb'
144 - 'db/migrate/025_add_end_time_to_changesets.rb'
145 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
150 - 'app/helpers/application_helper.rb'
151 - 'app/helpers/user_mailer_helper.rb'
153 - 'test/helpers/application_helper_test.rb'
156 # Configuration parameters: Include.
157 # Include: db/**/*.rb
158 Rails/ThreeStateBooleanColumn:
160 - 'db/migrate/001_create_osm_db.rb'
161 - 'db/migrate/006_tile_nodes.rb'
162 - 'db/migrate/007_add_relations.rb'
163 - 'db/migrate/054_refactor_map_bug_tables.rb'
164 - 'db/migrate/20140507110937_create_changeset_comments.rb'
167 # This cop supports safe autocorrection (--autocorrect).
170 - 'lib/tasks/auto_annotate_models.rake'
171 - 'lib/tasks/eslint.rake'
172 - 'lib/tasks/subscribe_diary_authors.rake'
173 - 'lib/tasks/subscribe_old_changesets.rake'
176 # This cop supports unsafe autocorrection (--autocorrect-all).
177 # Configuration parameters: EnforcedStyle.
178 # SupportedStyles: always, always_true, never
179 Style/FrozenStringLiteralComment:
183 # This cop supports safe autocorrection (--autocorrect).
184 # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
185 Style/NumericLiterals: