]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Update iD initialization for v2.18.1
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2019-10-19 16:05:52 +0000 using RuboCop version 0.75.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: 3338
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: 35
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: 4
43 # Configuration parameters: AllowComments.
44 Lint/SuppressedException:
45   Exclude:
46     - 'app/controllers/api/amf_controller.rb'
47     - 'app/controllers/users_controller.rb'
48     - 'app/controllers/site_controller.rb'
49
50 # Offense count: 701
51 Metrics/AbcSize:
52   Max: 189
53
54 # Offense count: 39
55 # Configuration parameters: CountComments, 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.
67 Metrics/ClassLength:
68   Max: 645
69
70 # Offense count: 74
71 Metrics/CyclomaticComplexity:
72   Max: 28
73
74 # Offense count: 722
75 # Configuration parameters: CountComments, ExcludedMethods.
76 Metrics/MethodLength:
77   Max: 179
78
79 # Offense count: 2
80 # Configuration parameters: CountComments.
81 Metrics/ModuleLength:
82   Max: 117
83
84 # Offense count: 4
85 # Configuration parameters: CountKeywordArgs.
86 Metrics/ParameterLists:
87   Max: 9
88
89 # Offense count: 72
90 Metrics/PerceivedComplexity:
91   Max: 25
92
93 # Offense count: 6
94 Naming/AccessorMethodName:
95   Exclude:
96     - 'app/controllers/application_controller.rb'
97     - 'app/helpers/title_helper.rb'
98     - 'app/models/old_way.rb'
99     - 'lib/osm.rb'
100     - 'lib/potlatch.rb'
101
102 # Offense count: 8
103 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
104 # NamePrefix: is_, has_, have_
105 # NamePrefixBlacklist: is_, has_, have_
106 # NameWhitelist: is_a?
107 # MethodDefinitionMacros: define_method, define_singleton_method
108 Naming/PredicateName:
109   Exclude:
110     - 'spec/**/*'
111     - 'app/models/changeset.rb'
112     - 'app/models/old_node.rb'
113     - 'app/models/old_relation.rb'
114     - 'app/models/old_way.rb'
115     - 'app/models/user.rb'
116     - 'lib/classic_pagination/pagination.rb'
117
118 # Offense count: 5
119 # Cop supports --auto-correct.
120 Performance/RegexpMatch:
121   Exclude:
122     - 'app/helpers/browse_tags_helper.rb'
123     - 'app/validators/characters_validator.rb'
124     - 'app/validators/whitespace_validator.rb'
125
126 # Offense count: 6
127 # Configuration parameters: Database, Include.
128 # SupportedDatabases: mysql, postgresql
129 # Include: db/migrate/*.rb
130 Rails/BulkChangeTable:
131   Exclude:
132     - 'db/migrate/20111116184519_update_oauth.rb'
133     - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
134     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
135     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
136
137 # Offense count: 2
138 # Configuration parameters: Include.
139 # Include: app/models/**/*.rb
140 Rails/HasAndBelongsToMany:
141   Exclude:
142     - 'app/models/changeset.rb'
143     - 'app/models/user.rb'
144
145 # Offense count: 11
146 # Configuration parameters: Include.
147 # Include: app/helpers/**/*.rb
148 Rails/HelperInstanceVariable:
149   Exclude:
150     - 'app/helpers/application_helper.rb'
151     - 'app/helpers/title_helper.rb'
152     - 'app/helpers/trace_helper.rb'
153
154 # Offense count: 5
155 # Configuration parameters: Include.
156 # Include: db/migrate/*.rb
157 Rails/NotNullColumn:
158   Exclude:
159     - 'db/migrate/002_cleanup_osm_db.rb'
160     - 'db/migrate/020_populate_node_tags_and_remove.rb'
161     - 'db/migrate/021_move_to_innodb.rb'
162     - 'db/migrate/025_add_end_time_to_changesets.rb'
163     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
164
165 # Offense count: 18
166 Rails/OutputSafety:
167   Exclude:
168     - 'app/controllers/users_controller.rb'
169     - 'app/helpers/application_helper.rb'
170     - 'app/helpers/changesets_helper.rb'
171     - 'app/helpers/geocoder_helper.rb'
172     - 'app/helpers/note_helper.rb'
173     - 'app/helpers/open_graph_helper.rb'
174     - 'app/helpers/user_blocks_helper.rb'
175     - 'lib/rich_text.rb'
176     - 'test/helpers/application_helper_test.rb'
177
178 # Offense count: 94
179 # Cop supports --auto-correct.
180 # Configuration parameters: EnforcedStyle.
181 # SupportedStyles: strict, flexible
182 Rails/TimeZone:
183   Enabled: false
184
185 # Offense count: 1
186 # Configuration parameters: AllowedChars.
187 Style/AsciiComments:
188   Exclude:
189     - 'test/models/message_test.rb'
190
191 # Offense count: 27
192 # Configuration parameters: EnforcedStyle.
193 # SupportedStyles: annotated, template, unannotated
194 Style/FormatStringToken:
195   Exclude:
196     - 'app/models/concerns/geo_record.rb'
197     - 'app/views/api/map/_bounds.xml.builder'
198     - 'lib/bounding_box.rb'
199     - 'test/controllers/api/map_controller_test.rb'
200     - 'test/controllers/api/relations_controller_test.rb'
201     - 'test/controllers/api/ways_controller_test.rb'
202     - 'test/lib/bounding_box_test.rb'
203
204 # Offense count: 539
205 # Cop supports --auto-correct.
206 # Configuration parameters: EnforcedStyle.
207 # SupportedStyles: always, never
208 Style/FrozenStringLiteralComment:
209   Enabled: false
210
211 # Offense count: 2
212 # Cop supports --auto-correct.
213 Style/IfUnlessModifier:
214   Exclude:
215     - 'app/controllers/api/ways_controller.rb'
216
217 # Offense count: 70
218 # Cop supports --auto-correct.
219 # Configuration parameters: Strict.
220 Style/NumericLiterals:
221   MinDigits: 11