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