]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Move html5shiv to be a yarn managed asset
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2020-08-06 17:20:38 UTC using RuboCop version 0.89.0.
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
16 # Offense count: 568
17 # Cop supports --auto-correct.
18 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
19 # URISchemes: http, https
20 Layout/LineLength:
21   Max: 370
22
23 # Offense count: 36
24 # Configuration parameters: AllowSafeAssignment.
25 Lint/AssignmentInCondition:
26   Exclude:
27     - 'app/controllers/api/traces_controller.rb'
28     - 'app/controllers/api/user_preferences_controller.rb'
29     - 'app/controllers/application_controller.rb'
30     - 'app/controllers/geocoder_controller.rb'
31     - 'app/controllers/notes_controller.rb'
32     - 'app/controllers/traces_controller.rb'
33     - 'app/controllers/users_controller.rb'
34     - 'app/helpers/application_helper.rb'
35     - 'app/helpers/browse_tags_helper.rb'
36     - 'app/mailers/notifier.rb'
37     - 'app/models/client_application.rb'
38     - 'lib/nominatim.rb'
39     - 'lib/osm.rb'
40     - 'script/deliver-message'
41
42 # Offense count: 20
43 Lint/MissingSuper:
44   Exclude:
45     - 'config/initializers/oauth.rb'
46     - 'lib/osm.rb'
47     - 'lib/session_persistence.rb'
48
49 # Offense count: 682
50 # Configuration parameters: IgnoredMethods.
51 Metrics/AbcSize:
52   Max: 194
53
54 # Offense count: 72
55 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
56 # ExcludedMethods: refine
57 Metrics/BlockLength:
58   Max: 71
59
60 # Offense count: 15
61 # Configuration parameters: CountBlocks.
62 Metrics/BlockNesting:
63   Max: 5
64
65 # Offense count: 25
66 # Configuration parameters: CountComments, CountAsOne.
67 Metrics/ClassLength:
68   Max: 645
69
70 # Offense count: 68
71 # Configuration parameters: IgnoredMethods.
72 Metrics/CyclomaticComplexity:
73   Max: 26
74
75 # Offense count: 735
76 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
77 Metrics/MethodLength:
78   Max: 179
79
80 # Offense count: 4
81 # Configuration parameters: CountKeywordArgs.
82 Metrics/ParameterLists:
83   Max: 9
84
85 # Offense count: 69
86 # Configuration parameters: IgnoredMethods.
87 Metrics/PerceivedComplexity:
88   Max: 26
89
90 # Offense count: 6
91 Naming/AccessorMethodName:
92   Exclude:
93     - 'app/controllers/application_controller.rb'
94     - 'app/helpers/title_helper.rb'
95     - 'app/models/old_way.rb'
96     - 'lib/osm.rb'
97     - 'lib/potlatch.rb'
98
99 # Offense count: 8
100 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
101 # NamePrefix: is_, has_, have_
102 # ForbiddenPrefixes: is_, has_, have_
103 # AllowedMethods: is_a?
104 # MethodDefinitionMacros: define_method, define_singleton_method
105 Naming/PredicateName:
106   Exclude:
107     - 'spec/**/*'
108     - 'app/models/changeset.rb'
109     - 'app/models/old_node.rb'
110     - 'app/models/old_relation.rb'
111     - 'app/models/old_way.rb'
112     - 'app/models/user.rb'
113     - 'lib/classic_pagination/pagination.rb'
114
115 # Offense count: 5
116 # Configuration parameters: Database, Include.
117 # SupportedDatabases: mysql, postgresql
118 # Include: db/migrate/*.rb
119 Rails/BulkChangeTable:
120   Exclude:
121     - 'db/migrate/20111116184519_update_oauth.rb'
122     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
123     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
124
125 # Offense count: 2
126 # Configuration parameters: Include.
127 # Include: app/models/**/*.rb
128 Rails/HasAndBelongsToMany:
129   Exclude:
130     - 'app/models/changeset.rb'
131     - 'app/models/user.rb'
132
133 # Offense count: 4
134 # Configuration parameters: Include.
135 # Include: app/helpers/**/*.rb
136 Rails/HelperInstanceVariable:
137   Exclude:
138     - 'app/helpers/title_helper.rb'
139
140 # Offense count: 5
141 # Configuration parameters: Include.
142 # Include: db/migrate/*.rb
143 Rails/NotNullColumn:
144   Exclude:
145     - 'db/migrate/002_cleanup_osm_db.rb'
146     - 'db/migrate/020_populate_node_tags_and_remove.rb'
147     - 'db/migrate/021_move_to_innodb.rb'
148     - 'db/migrate/025_add_end_time_to_changesets.rb'
149     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
150
151 # Offense count: 19
152 Rails/OutputSafety:
153   Exclude:
154     - 'app/controllers/users_controller.rb'
155     - 'app/helpers/application_helper.rb'
156     - 'app/helpers/changesets_helper.rb'
157     - 'app/helpers/geocoder_helper.rb'
158     - 'app/helpers/note_helper.rb'
159     - 'app/helpers/open_graph_helper.rb'
160     - 'app/helpers/user_blocks_helper.rb'
161     - 'lib/rich_text.rb'
162     - 'test/helpers/application_helper_test.rb'
163
164 # Offense count: 95
165 # Cop supports --auto-correct.
166 # Configuration parameters: EnforcedStyle.
167 # SupportedStyles: strict, flexible
168 Rails/TimeZone:
169   Enabled: false
170
171 # Offense count: 6
172 # Cop supports --auto-correct.
173 Style/ExplicitBlockArgument:
174   Exclude:
175     - 'app/controllers/api/amf_controller.rb'
176     - 'app/controllers/application_controller.rb'
177     - 'app/mailers/notifier.rb'
178     - 'test/integration/client_applications_test.rb'
179
180 # Offense count: 572
181 # Cop supports --auto-correct.
182 # Configuration parameters: EnforcedStyle.
183 # SupportedStyles: always, always_true, never
184 Style/FrozenStringLiteralComment:
185   Enabled: false
186
187 # Offense count: 78
188 # Cop supports --auto-correct.
189 # Configuration parameters: Strict.
190 Style/NumericLiterals:
191   MinDigits: 11
192
193 # Offense count: 20
194 Style/OptionalBooleanParameter:
195   Exclude:
196     - 'app/controllers/api/notes_controller.rb'
197     - 'app/controllers/application_controller.rb'
198     - 'app/helpers/browse_helper.rb'
199     - 'app/models/changeset.rb'
200     - 'app/models/node.rb'
201     - 'app/models/relation.rb'
202     - 'app/models/trace.rb'
203     - 'app/models/tracepoint.rb'
204     - 'app/models/way.rb'
205     - 'test/models/diary_entry_test.rb'
206     - 'test/models/trace_test.rb'
207     - 'test/models/tracetag_test.rb'
208
209 # Offense count: 44
210 # Cop supports --auto-correct.
211 Style/StringConcatenation:
212   Enabled: false