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