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.
10 # Cop supports --auto-correct.
11 # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
12 # SupportedStyles: aligned, indented
13 Layout/MultilineOperationIndentation:
15 - 'lib/bounding_box.rb'
18 Lint/AmbiguousOperator:
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'
26 Lint/AmbiguousRegexpLiteral:
30 # Configuration parameters: AllowSafeAssignment.
31 Lint/AssignmentInCondition:
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'
45 - 'script/deliver-message'
48 Lint/HandleExceptions:
50 - 'app/controllers/amf_controller.rb'
51 - 'app/controllers/user_controller.rb'
54 Lint/InterpolationCheck:
56 - 'test/controllers/node_controller_test.rb'
59 Lint/RescueWithoutErrorClass:
61 - 'app/helpers/browse_helper.rb'
64 Lint/ShadowingOuterLocalVariable:
66 - 'app/views/changeset/list.atom.builder'
73 # Configuration parameters: CountComments, ExcludedMethods.
78 # Configuration parameters: CountBlocks.
83 # Configuration parameters: CountComments.
88 Metrics/CyclomaticComplexity:
92 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
93 # URISchemes: http, https
98 # Configuration parameters: CountComments.
103 # Configuration parameters: CountComments.
104 Metrics/ModuleLength:
108 # Configuration parameters: CountKeywordArgs.
109 Metrics/ParameterLists:
113 Metrics/PerceivedComplexity:
117 Naming/AccessorMethodName:
119 - 'app/controllers/application_controller.rb'
120 - 'app/helpers/title_helper.rb'
121 - 'app/models/old_way.rb'
126 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
127 # NamePrefix: is_, has_, have_
128 # NamePrefixBlacklist: is_, has_, have_
129 # NameWhitelist: is_a?
130 Naming/PredicateName:
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'
141 # Configuration parameters: Include.
142 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
146 - 'lib/daemons/gpx_import.rb'
149 # Configuration parameters: Include.
150 # Include: app/models/**/*.rb
151 Rails/HasAndBelongsToMany:
153 - 'app/models/changeset.rb'
154 - 'app/models/user.rb'
157 # Configuration parameters: Include.
158 # Include: db/migrate/*.rb
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'
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'
179 - 'test/helpers/application_helper_test.rb'
182 # Configuration parameters: EnforcedStyle, SupportedStyles.
183 # SupportedStyles: strict, flexible
190 - 'test/models/message_test.rb'
197 # Cop supports --auto-correct.
198 # Configuration parameters: MaxLineLength.
199 Style/IfUnlessModifier:
201 - 'app/controllers/way_controller.rb'
204 # Cop supports --auto-correct.
205 Style/LineEndConcatenation:
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'
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'
219 # Cop supports --auto-correct.
220 # Configuration parameters: Strict.
221 Style/NumericLiterals:
225 # Cop supports --auto-correct.
226 # Configuration parameters: EnforcedStyle, SupportedStyles.
227 # SupportedStyles: compact, exploded