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