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