]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Update leaflet-osm to latest upstream version
[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 # Work around erblint issues.
10 # https://github.com/openstreetmap/openstreetmap-website/issues/2472
11 require:
12   - rubocop-minitest
13   - rubocop-performance
14   - rubocop-rails
15   - rubocop-rake
16
17 # Offense count: 13
18 # Configuration parameters: Include, MaxAmount.
19 # Include: **/*_spec.rb, **/spec/**/*, **/test/**/*, **/features/support/factories/**/*.rb
20 FactoryBot/ExcessiveCreateList:
21   Exclude:
22     - 'test/controllers/api/changeset_comments_controller_test.rb'
23     - 'test/controllers/api/messages/inboxes_controller_test.rb'
24     - 'test/controllers/api/messages/outboxes_controller_test.rb'
25     - 'test/controllers/changesets_controller_test.rb'
26     - 'test/controllers/diary_entries_controller_test.rb'
27     - 'test/controllers/notes_controller_test.rb'
28     - 'test/controllers/traces_controller_test.rb'
29     - 'test/controllers/user_blocks_controller_test.rb'
30     - 'test/system/users_test.rb'
31
32 # Offense count: 635
33 # This cop supports safe autocorrection (--autocorrect).
34 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
35 # URISchemes: http, https
36 Layout/LineLength:
37   Max: 234
38
39 # Offense count: 23
40 # This cop supports unsafe autocorrection (--autocorrect-all).
41 # Configuration parameters: AllowSafeAssignment.
42 Lint/AssignmentInCondition:
43   Exclude:
44     - 'app/controllers/accounts_controller.rb'
45     - 'app/controllers/api/traces_controller.rb'
46     - 'app/controllers/api/user_preferences_controller.rb'
47     - 'app/controllers/geocoder_controller.rb'
48     - 'app/controllers/traces_controller.rb'
49     - 'app/controllers/users_controller.rb'
50     - 'app/helpers/application_helper.rb'
51     - 'app/helpers/browse_tags_helper.rb'
52     - 'app/mailers/user_mailer.rb'
53     - 'app/models/client_application.rb'
54     - 'lib/nominatim.rb'
55     - 'lib/osm.rb'
56     - 'script/deliver-message'
57
58 # Offense count: 762
59 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
60 Metrics/AbcSize:
61   Max: 189
62
63 # Offense count: 37
64 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
65 # AllowedMethods: refine
66 Metrics/BlockLength:
67   Max: 71
68
69 # Offense count: 8
70 # Configuration parameters: CountBlocks, CountModifierForms.
71 Metrics/BlockNesting:
72   Max: 5
73
74 # Offense count: 26
75 # Configuration parameters: CountComments, CountAsOne.
76 Metrics/ClassLength:
77   Max: 309
78
79 # Offense count: 58
80 # Configuration parameters: AllowedMethods, AllowedPatterns.
81 Metrics/CyclomaticComplexity:
82   Max: 25
83
84 # Offense count: 844
85 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
86 Metrics/MethodLength:
87   Max: 179
88
89 # Offense count: 1
90 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
91 Metrics/ParameterLists:
92   Max: 6
93
94 # Offense count: 58
95 # Configuration parameters: AllowedMethods, AllowedPatterns.
96 Metrics/PerceivedComplexity:
97   Max: 26
98
99 # Offense count: 2784
100 # This cop supports safe autocorrection (--autocorrect).
101 Minitest/EmptyLineBeforeAssertionMethods:
102   Enabled: false
103
104 # Offense count: 695
105 Minitest/MultipleAssertions:
106   Max: 60
107
108 # Offense count: 10
109 # This cop supports unsafe autocorrection (--autocorrect-all).
110 Rails/ActionControllerFlashBeforeRender:
111   Exclude:
112     - 'app/controllers/application_controller.rb'
113     - 'app/controllers/confirmations_controller.rb'
114     - 'app/controllers/friendships_controller.rb'
115     - 'app/controllers/issue_comments_controller.rb'
116     - 'app/controllers/messages_controller.rb'
117     - 'app/controllers/passwords_controller.rb'
118     - 'app/controllers/traces_controller.rb'
119     - 'app/controllers/user_blocks_controller.rb'
120     - 'app/controllers/users_controller.rb'
121
122 # Offense count: 2
123 # Configuration parameters: Include.
124 # Include: app/models/**/*.rb
125 Rails/HasAndBelongsToMany:
126   Exclude:
127     - 'app/models/changeset.rb'
128     - 'app/models/user.rb'
129
130 # Offense count: 3
131 # Configuration parameters: Include.
132 # Include: app/helpers/**/*.rb
133 Rails/HelperInstanceVariable:
134   Exclude:
135     - 'app/helpers/title_helper.rb'
136
137 # Offense count: 17
138 # Configuration parameters: IgnoreScopes, Include.
139 # Include: app/models/**/*.rb
140 Rails/InverseOf:
141   Exclude:
142     - 'app/models/changeset.rb'
143     - 'app/models/diary_entry.rb'
144     - 'app/models/friendship.rb'
145     - 'app/models/issue.rb'
146     - 'app/models/message.rb'
147     - 'app/models/note.rb'
148     - 'app/models/user.rb'
149
150 # Offense count: 1
151 # Configuration parameters: Include.
152 # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
153 Rails/LexicallyScopedActionFilter:
154   Exclude:
155     - 'app/controllers/oauth2_applications_controller.rb'
156
157 # Offense count: 5
158 # Configuration parameters: Database, Include.
159 # SupportedDatabases: mysql
160 # Include: db/**/*.rb
161 Rails/NotNullColumn:
162   Exclude:
163     - 'db/migrate/002_cleanup_osm_db.rb'
164     - 'db/migrate/020_populate_node_tags_and_remove.rb'
165     - 'db/migrate/021_move_to_innodb.rb'
166     - 'db/migrate/025_add_end_time_to_changesets.rb'
167     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
168
169 # Offense count: 7
170 Rails/OutputSafety:
171   Exclude:
172     - 'app/helpers/application_helper.rb'
173     - 'app/helpers/user_mailer_helper.rb'
174     - 'lib/rich_text.rb'
175     - 'test/helpers/application_helper_test.rb'
176
177 # Offense count: 16
178 # Configuration parameters: Include.
179 # Include: db/**/*.rb
180 Rails/ThreeStateBooleanColumn:
181   Exclude:
182     - 'db/migrate/001_create_osm_db.rb'
183     - 'db/migrate/006_tile_nodes.rb'
184     - 'db/migrate/007_add_relations.rb'
185     - 'db/migrate/054_refactor_map_bug_tables.rb'
186     - 'db/migrate/20140507110937_create_changeset_comments.rb'
187
188 # Offense count: 6
189 # This cop supports safe autocorrection (--autocorrect).
190 Rake/Desc:
191   Exclude:
192     - 'lib/tasks/auto_annotate_models.rake'
193     - 'lib/tasks/eslint.rake'
194     - 'lib/tasks/subscribe_diary_authors.rake'
195     - 'lib/tasks/subscribe_old_changesets.rake'
196
197 # Offense count: 712
198 # This cop supports unsafe autocorrection (--autocorrect-all).
199 # Configuration parameters: EnforcedStyle.
200 # SupportedStyles: always, always_true, never
201 Style/FrozenStringLiteralComment:
202   Enabled: false
203
204 # Offense count: 78
205 # This cop supports safe autocorrection (--autocorrect).
206 # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
207 Style/NumericLiterals:
208   MinDigits: 15