]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Pluralise user_preferences_controller
[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_preferences_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/ShadowingOuterLocalVariable:
60   Exclude:
61     - 'app/views/changeset/list.atom.builder'
62
63 # Offense count: 666
64 Metrics/AbcSize:
65   Max: 280
66
67 # Offense count: 41
68 # Configuration parameters: CountComments, ExcludedMethods.
69 Metrics/BlockLength:
70   Max: 240
71
72 # Offense count: 12
73 # Configuration parameters: CountBlocks.
74 Metrics/BlockNesting:
75   Max: 5
76
77 # Offense count: 63
78 # Configuration parameters: CountComments.
79 Metrics/ClassLength:
80   Max: 1797
81
82 # Offense count: 71
83 Metrics/CyclomaticComplexity:
84   Max: 20
85
86 # Offense count: 3004
87 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
88 # URISchemes: http, https
89 Metrics/LineLength:
90   Max: 1073
91
92 # Offense count: 675
93 # Configuration parameters: CountComments.
94 Metrics/MethodLength:
95   Max: 179
96
97 # Offense count: 2
98 # Configuration parameters: CountComments.
99 Metrics/ModuleLength:
100   Max: 147
101
102 # Offense count: 4
103 # Configuration parameters: CountKeywordArgs.
104 Metrics/ParameterLists:
105   Max: 9
106
107 # Offense count: 71
108 Metrics/PerceivedComplexity:
109   Max: 23
110
111 # Offense count: 5
112 Naming/AccessorMethodName:
113   Exclude:
114     - 'app/controllers/application_controller.rb'
115     - 'app/helpers/title_helper.rb'
116     - 'app/models/old_way.rb'
117     - 'lib/osm.rb'
118     - 'lib/potlatch.rb'
119
120 # Offense count: 8
121 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
122 # NamePrefix: is_, has_, have_
123 # NamePrefixBlacklist: is_, has_, have_
124 # NameWhitelist: is_a?
125 Naming/PredicateName:
126   Exclude:
127     - 'spec/**/*'
128     - 'app/models/changeset.rb'
129     - 'app/models/old_node.rb'
130     - 'app/models/old_relation.rb'
131     - 'app/models/old_way.rb'
132     - 'app/models/user.rb'
133     - 'lib/classic_pagination/pagination.rb'
134
135 # Offense count: 2
136 # Configuration parameters: Include.
137 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
138 Rails/Exit:
139   Exclude:
140     - 'lib/**/*.rake'
141     - 'lib/daemons/gpx_import.rb'
142
143 # Offense count: 2
144 # Configuration parameters: Include.
145 # Include: app/models/**/*.rb
146 Rails/HasAndBelongsToMany:
147   Exclude:
148     - 'app/models/changeset.rb'
149     - 'app/models/user.rb'
150
151 # Offense count: 5
152 # Configuration parameters: Include.
153 # Include: db/migrate/*.rb
154 Rails/NotNullColumn:
155   Exclude:
156     - 'db/migrate/002_cleanup_osm_db.rb'
157     - 'db/migrate/020_populate_node_tags_and_remove.rb'
158     - 'db/migrate/021_move_to_innodb.rb'
159     - 'db/migrate/025_add_end_time_to_changesets.rb'
160     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
161
162 # Offense count: 20
163 Rails/OutputSafety:
164   Exclude:
165     - 'app/controllers/user_controller.rb'
166     - 'app/helpers/application_helper.rb'
167     - 'app/helpers/changeset_helper.rb'
168     - 'app/helpers/geocoder_helper.rb'
169     - 'app/helpers/note_helper.rb'
170     - 'app/helpers/open_graph_helper.rb'
171     - 'app/helpers/user_blocks_helper.rb'
172     - 'app/helpers/user_roles_helper.rb'
173     - 'lib/rich_text.rb'
174     - 'test/helpers/application_helper_test.rb'
175
176 # Offense count: 86
177 # Configuration parameters: EnforcedStyle, SupportedStyles.
178 # SupportedStyles: strict, flexible
179 Rails/TimeZone:
180   Enabled: false
181
182 # Offense count: 1
183 Style/AsciiComments:
184   Exclude:
185     - 'test/models/message_test.rb'
186
187 # Offense count: 219
188 Style/Documentation:
189   Enabled: false
190
191 # Offense count: 1
192 # Cop supports --auto-correct.
193 # Configuration parameters: MaxLineLength.
194 Style/IfUnlessModifier:
195   Exclude:
196     - 'app/controllers/way_controller.rb'
197
198 # Offense count: 60
199 # Cop supports --auto-correct.
200 Style/LineEndConcatenation:
201   Exclude:
202     - 'db/migrate/008_remove_segments.rb'
203     - 'db/migrate/020_populate_node_tags_and_remove.rb'
204     - 'db/migrate/023_add_changesets.rb'
205     - 'lib/bounding_box.rb'
206     - 'lib/diff_reader.rb'
207     - 'lib/osm.rb'
208     - 'test/controllers/changeset_controller_test.rb'
209     - 'test/controllers/node_controller_test.rb'
210     - 'test/controllers/relation_controller_test.rb'
211     - 'test/controllers/way_controller_test.rb'
212
213 # Offense count: 75
214 # Cop supports --auto-correct.
215 # Configuration parameters: Strict.
216 Style/NumericLiterals:
217   MinDigits: 11
218
219 # Offense count: 95
220 # Cop supports --auto-correct.
221 # Configuration parameters: EnforcedStyle, SupportedStyles.
222 # SupportedStyles: compact, exploded
223 Style/RaiseArgs:
224   Enabled: false
225
226 # Offense count: 2
227 Style/RescueStandardError:
228   Exclude:
229     - 'app/helpers/browse_helper.rb'