]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Change user.preferred_language to user.default_diary_language supporting preferences
[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/traces_controller.rb'
42     - 'app/controllers/users_controller.rb'
43     - 'app/helpers/application_helper.rb'
44     - 'app/helpers/browse_tags_helper.rb'
45     - 'app/mailers/user_mailer.rb'
46     - 'lib/nominatim.rb'
47     - 'lib/osm.rb'
48     - 'script/deliver-message'
49
50 # Offense count: 762
51 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
52 Metrics/AbcSize:
53   Max: 189
54
55 # Offense count: 37
56 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
57 # AllowedMethods: refine
58 Metrics/BlockLength:
59   Max: 71
60
61 # Offense count: 8
62 # Configuration parameters: CountBlocks, CountModifierForms.
63 Metrics/BlockNesting:
64   Max: 5
65
66 # Offense count: 26
67 # Configuration parameters: CountComments, CountAsOne.
68 Metrics/ClassLength:
69   Max: 330
70
71 # Offense count: 58
72 # Configuration parameters: AllowedMethods, AllowedPatterns.
73 Metrics/CyclomaticComplexity:
74   Max: 25
75
76 # Offense count: 844
77 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
78 Metrics/MethodLength:
79   Max: 179
80
81 # Offense count: 1
82 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
83 Metrics/ParameterLists:
84   Max: 6
85
86 # Offense count: 58
87 # Configuration parameters: AllowedMethods, AllowedPatterns.
88 Metrics/PerceivedComplexity:
89   Max: 26
90
91 # Offense count: 2784
92 # This cop supports safe autocorrection (--autocorrect).
93 Minitest/EmptyLineBeforeAssertionMethods:
94   Enabled: false
95
96 # Offense count: 695
97 Minitest/MultipleAssertions:
98   Max: 60
99
100 # Offense count: 2
101 # Configuration parameters: Include.
102 # Include: app/models/**/*.rb
103 Rails/HasAndBelongsToMany:
104   Exclude:
105     - 'app/models/changeset.rb'
106     - 'app/models/user.rb'
107
108 # Offense count: 3
109 # Configuration parameters: Include.
110 # Include: app/helpers/**/*.rb
111 Rails/HelperInstanceVariable:
112   Exclude:
113     - 'app/helpers/title_helper.rb'
114
115 # Offense count: 17
116 # Configuration parameters: IgnoreScopes, Include.
117 # Include: app/models/**/*.rb
118 Rails/InverseOf:
119   Exclude:
120     - 'app/models/changeset.rb'
121     - 'app/models/diary_entry.rb'
122     - 'app/models/issue.rb'
123     - 'app/models/message.rb'
124     - 'app/models/note.rb'
125     - 'app/models/user.rb'
126
127 # Offense count: 1
128 # Configuration parameters: Include.
129 # Include: app/controllers/**/*.rb, app/mailers/**/*.rb
130 Rails/LexicallyScopedActionFilter:
131   Exclude:
132     - 'app/controllers/oauth2_applications_controller.rb'
133
134 # Offense count: 5
135 # Configuration parameters: Database, Include.
136 # SupportedDatabases: mysql
137 # Include: db/**/*.rb
138 Rails/NotNullColumn:
139   Exclude:
140     - 'db/migrate/002_cleanup_osm_db.rb'
141     - 'db/migrate/020_populate_node_tags_and_remove.rb'
142     - 'db/migrate/021_move_to_innodb.rb'
143     - 'db/migrate/025_add_end_time_to_changesets.rb'
144     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
145
146 # Offense count: 7
147 Rails/OutputSafety:
148   Exclude:
149     - 'app/helpers/application_helper.rb'
150     - 'app/helpers/user_mailer_helper.rb'
151     - 'lib/rich_text.rb'
152     - 'test/helpers/application_helper_test.rb'
153
154 # Offense count: 16
155 # Configuration parameters: Include.
156 # Include: db/**/*.rb
157 Rails/ThreeStateBooleanColumn:
158   Exclude:
159     - 'db/migrate/001_create_osm_db.rb'
160     - 'db/migrate/006_tile_nodes.rb'
161     - 'db/migrate/007_add_relations.rb'
162     - 'db/migrate/054_refactor_map_bug_tables.rb'
163     - 'db/migrate/20140507110937_create_changeset_comments.rb'
164
165 # Offense count: 6
166 # This cop supports safe autocorrection (--autocorrect).
167 Rake/Desc:
168   Exclude:
169     - 'lib/tasks/eslint.rake'
170     - 'lib/tasks/subscribe_diary_authors.rake'
171     - 'lib/tasks/subscribe_old_changesets.rake'
172
173 # Offense count: 712
174 # This cop supports unsafe autocorrection (--autocorrect-all).
175 # Configuration parameters: EnforcedStyle.
176 # SupportedStyles: always, always_true, never
177 Style/FrozenStringLiteralComment:
178   Enabled: false
179
180 # Offense count: 78
181 # This cop supports safe autocorrection (--autocorrect).
182 # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
183 Style/NumericLiterals:
184   MinDigits: 15