]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Merge remote-tracking branch 'upstream/pull/5707'
[rails.git] / .rubocop_todo.yml
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.
8
9 # Offense count: 13
10 # Configuration parameters: Include, MaxAmount.
11 # Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
12 FactoryBot/ExcessiveCreateList:
13   Exclude:
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'
25
26 # Offense count: 635
27 # This cop supports safe autocorrection (--autocorrect).
28 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
29 # URISchemes: http, https
30 Layout/LineLength:
31   Max: 234
32
33 # Offense count: 23
34 # This cop supports unsafe autocorrection (--autocorrect-all).
35 # Configuration parameters: AllowSafeAssignment.
36 Lint/AssignmentInCondition:
37   Exclude:
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'
47     - 'lib/nominatim.rb'
48     - 'lib/osm.rb'
49     - 'script/deliver-message'
50
51 # Offense count: 762
52 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
53 Metrics/AbcSize:
54   Max: 189
55
56 # Offense count: 37
57 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
58 # AllowedMethods: refine
59 Metrics/BlockLength:
60   Max: 71
61
62 # Offense count: 8
63 # Configuration parameters: CountBlocks, CountModifierForms.
64 Metrics/BlockNesting:
65   Max: 5
66
67 # Offense count: 26
68 # Configuration parameters: CountComments, CountAsOne.
69 Metrics/ClassLength:
70   Max: 309
71
72 # Offense count: 58
73 # Configuration parameters: AllowedMethods, AllowedPatterns.
74 Metrics/CyclomaticComplexity:
75   Max: 25
76
77 # Offense count: 844
78 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
79 Metrics/MethodLength:
80   Max: 179
81
82 # Offense count: 1
83 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
84 Metrics/ParameterLists:
85   Max: 6
86
87 # Offense count: 58
88 # Configuration parameters: AllowedMethods, AllowedPatterns.
89 Metrics/PerceivedComplexity:
90   Max: 26
91
92 # Offense count: 2784
93 # This cop supports safe autocorrection (--autocorrect).
94 Minitest/EmptyLineBeforeAssertionMethods:
95   Enabled: false
96
97 # Offense count: 695
98 Minitest/MultipleAssertions:
99   Max: 60
100
101 # Offense count: 2
102 # Configuration parameters: Include.
103 # Include: app/models/**/*.rb
104 Rails/HasAndBelongsToMany:
105   Exclude:
106     - 'app/models/changeset.rb'
107     - 'app/models/user.rb'
108
109 # Offense count: 3
110 # Configuration parameters: Include.
111 # Include: app/helpers/**/*.rb
112 Rails/HelperInstanceVariable:
113   Exclude:
114     - 'app/helpers/title_helper.rb'
115
116 # Offense count: 17
117 # Configuration parameters: IgnoreScopes, Include.
118 # Include: app/models/**/*.rb
119 Rails/InverseOf:
120   Exclude:
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'
127
128 # Offense count: 1
129 # Configuration parameters: Include.
130 # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
131 Rails/LexicallyScopedActionFilter:
132   Exclude:
133     - 'app/controllers/oauth2_applications_controller.rb'
134
135 # Offense count: 5
136 # Configuration parameters: Database, Include.
137 # SupportedDatabases: mysql
138 # Include: db/**/*.rb
139 Rails/NotNullColumn:
140   Exclude:
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'
146
147 # Offense count: 7
148 Rails/OutputSafety:
149   Exclude:
150     - 'app/helpers/application_helper.rb'
151     - 'app/helpers/user_mailer_helper.rb'
152     - 'lib/rich_text.rb'
153     - 'test/helpers/application_helper_test.rb'
154
155 # Offense count: 16
156 # Configuration parameters: Include.
157 # Include: db/**/*.rb
158 Rails/ThreeStateBooleanColumn:
159   Exclude:
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'
165
166 # Offense count: 6
167 # This cop supports safe autocorrection (--autocorrect).
168 Rake/Desc:
169   Exclude:
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'
174
175 # Offense count: 712
176 # This cop supports unsafe autocorrection (--autocorrect-all).
177 # Configuration parameters: EnforcedStyle.
178 # SupportedStyles: always, always_true, never
179 Style/FrozenStringLiteralComment:
180   Enabled: false
181
182 # Offense count: 78
183 # This cop supports safe autocorrection (--autocorrect).
184 # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
185 Style/NumericLiterals:
186   MinDigits: 15