]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Fix rubocop issue
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2017-10-05 10:04:24 +0100 using RuboCop version 0.50.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: 1
10 # Cop supports --auto-correct.
11 # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
12 # SupportedStyles: aligned, indented
13 Layout/MultilineOperationIndentation:
14   Exclude:
15     - 'lib/bounding_box.rb'
16
17 # Offense count: 34
18 Lint/AmbiguousOperator:
19   Exclude:
20     - 'test/controllers/amf_controller_test.rb'
21     - 'test/controllers/changeset_controller_test.rb'
22     - 'test/lib/bounding_box_test.rb'
23     - 'test/lib/country_test.rb'
24
25 # Offense count: 124
26 Lint/AmbiguousRegexpLiteral:
27   Enabled: false
28
29 # Offense count: 32
30 # Configuration parameters: AllowSafeAssignment.
31 Lint/AssignmentInCondition:
32   Exclude:
33     - 'app/controllers/application_controller.rb'
34     - 'app/controllers/geocoder_controller.rb'
35     - 'app/controllers/notes_controller.rb'
36     - 'app/controllers/trace_controller.rb'
37     - 'app/controllers/user_controller.rb'
38     - 'app/controllers/user_preference_controller.rb'
39     - 'app/helpers/application_helper.rb'
40     - 'app/helpers/browse_helper.rb'
41     - 'app/models/client_application.rb'
42     - 'app/models/notifier.rb'
43     - 'lib/nominatim.rb'
44     - 'lib/osm.rb'
45     - 'script/deliver-message'
46
47 # Offense count: 4
48 Lint/HandleExceptions:
49   Exclude:
50     - 'app/controllers/amf_controller.rb'
51     - 'app/controllers/user_controller.rb'
52
53 # Offense count: 3
54 Lint/InterpolationCheck:
55   Exclude:
56     - 'test/controllers/node_controller_test.rb'
57
58 # Offense count: 2
59 Lint/RescueWithoutErrorClass:
60   Exclude:
61     - 'app/helpers/browse_helper.rb'
62
63 # Offense count: 2
64 Lint/ShadowingOuterLocalVariable:
65   Exclude:
66     - 'app/views/changeset/list.atom.builder'
67
68 # Offense count: 666
69 Metrics/AbcSize:
70   Max: 280
71
72 # Offense count: 41
73 # Configuration parameters: CountComments, ExcludedMethods.
74 Metrics/BlockLength:
75   Max: 240
76
77 # Offense count: 12
78 # Configuration parameters: CountBlocks.
79 Metrics/BlockNesting:
80   Max: 5
81
82 # Offense count: 63
83 # Configuration parameters: CountComments.
84 Metrics/ClassLength:
85   Max: 1797
86
87 # Offense count: 71
88 Metrics/CyclomaticComplexity:
89   Max: 20
90
91 # Offense count: 3004
92 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
93 # URISchemes: http, https
94 Metrics/LineLength:
95   Max: 1073
96
97 # Offense count: 675
98 # Configuration parameters: CountComments.
99 Metrics/MethodLength:
100   Max: 179
101
102 # Offense count: 2
103 # Configuration parameters: CountComments.
104 Metrics/ModuleLength:
105   Max: 147
106
107 # Offense count: 4
108 # Configuration parameters: CountKeywordArgs.
109 Metrics/ParameterLists:
110   Max: 9
111
112 # Offense count: 71
113 Metrics/PerceivedComplexity:
114   Max: 23
115
116 # Offense count: 5
117 Naming/AccessorMethodName:
118   Exclude:
119     - 'app/controllers/application_controller.rb'
120     - 'app/helpers/title_helper.rb'
121     - 'app/models/old_way.rb'
122     - 'lib/osm.rb'
123     - 'lib/potlatch.rb'
124
125 # Offense count: 8
126 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
127 # NamePrefix: is_, has_, have_
128 # NamePrefixBlacklist: is_, has_, have_
129 # NameWhitelist: is_a?
130 Naming/PredicateName:
131   Exclude:
132     - 'spec/**/*'
133     - 'app/models/changeset.rb'
134     - 'app/models/old_node.rb'
135     - 'app/models/old_relation.rb'
136     - 'app/models/old_way.rb'
137     - 'app/models/user.rb'
138     - 'lib/classic_pagination/pagination.rb'
139
140 # Offense count: 2
141 # Configuration parameters: Include.
142 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
143 Rails/Exit:
144   Exclude:
145     - 'lib/**/*.rake'
146     - 'lib/daemons/gpx_import.rb'
147
148 # Offense count: 2
149 # Configuration parameters: Include.
150 # Include: app/models/**/*.rb
151 Rails/HasAndBelongsToMany:
152   Exclude:
153     - 'app/models/changeset.rb'
154     - 'app/models/user.rb'
155
156 # Offense count: 5
157 # Configuration parameters: Include.
158 # Include: db/migrate/*.rb
159 Rails/NotNullColumn:
160   Exclude:
161     - 'db/migrate/002_cleanup_osm_db.rb'
162     - 'db/migrate/020_populate_node_tags_and_remove.rb'
163     - 'db/migrate/021_move_to_innodb.rb'
164     - 'db/migrate/025_add_end_time_to_changesets.rb'
165     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
166
167 # Offense count: 20
168 Rails/OutputSafety:
169   Exclude:
170     - 'app/controllers/user_controller.rb'
171     - 'app/helpers/application_helper.rb'
172     - 'app/helpers/changeset_helper.rb'
173     - 'app/helpers/geocoder_helper.rb'
174     - 'app/helpers/note_helper.rb'
175     - 'app/helpers/open_graph_helper.rb'
176     - 'app/helpers/user_blocks_helper.rb'
177     - 'app/helpers/user_roles_helper.rb'
178     - 'lib/rich_text.rb'
179     - 'test/helpers/application_helper_test.rb'
180
181 # Offense count: 86
182 # Configuration parameters: EnforcedStyle, SupportedStyles.
183 # SupportedStyles: strict, flexible
184 Rails/TimeZone:
185   Enabled: false
186
187 # Offense count: 1
188 Style/AsciiComments:
189   Exclude:
190     - 'test/models/message_test.rb'
191
192 # Offense count: 219
193 Style/Documentation:
194   Enabled: false
195
196 # Offense count: 1
197 # Cop supports --auto-correct.
198 # Configuration parameters: MaxLineLength.
199 Style/IfUnlessModifier:
200   Exclude:
201     - 'app/controllers/way_controller.rb'
202
203 # Offense count: 60
204 # Cop supports --auto-correct.
205 Style/LineEndConcatenation:
206   Exclude:
207     - 'db/migrate/008_remove_segments.rb'
208     - 'db/migrate/020_populate_node_tags_and_remove.rb'
209     - 'db/migrate/023_add_changesets.rb'
210     - 'lib/bounding_box.rb'
211     - 'lib/diff_reader.rb'
212     - 'lib/osm.rb'
213     - 'test/controllers/changeset_controller_test.rb'
214     - 'test/controllers/node_controller_test.rb'
215     - 'test/controllers/relation_controller_test.rb'
216     - 'test/controllers/way_controller_test.rb'
217
218 # Offense count: 75
219 # Cop supports --auto-correct.
220 # Configuration parameters: Strict.
221 Style/NumericLiterals:
222   MinDigits: 11
223
224 # Offense count: 95
225 # Cop supports --auto-correct.
226 # Configuration parameters: EnforcedStyle, SupportedStyles.
227 # SupportedStyles: compact, exploded
228 Style/RaiseArgs:
229   Enabled: false