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/traces_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'
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/ShadowingOuterLocalVariable:
61 - 'app/views/changeset/list.atom.builder'
68 # Configuration parameters: CountComments, ExcludedMethods.
73 # Configuration parameters: CountBlocks.
78 # Configuration parameters: CountComments.
83 Metrics/CyclomaticComplexity:
87 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
88 # URISchemes: http, https
93 # Configuration parameters: CountComments.
98 # Configuration parameters: CountComments.
103 # Configuration parameters: CountKeywordArgs.
104 Metrics/ParameterLists:
108 Metrics/PerceivedComplexity:
112 Naming/AccessorMethodName:
114 - 'app/controllers/application_controller.rb'
115 - 'app/helpers/title_helper.rb'
116 - 'app/models/old_way.rb'
121 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
122 # NamePrefix: is_, has_, have_
123 # NamePrefixBlacklist: is_, has_, have_
124 # NameWhitelist: is_a?
125 Naming/PredicateName:
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'
136 # Configuration parameters: Include.
137 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
141 - 'lib/daemons/gpx_import.rb'
144 # Configuration parameters: Include.
145 # Include: app/models/**/*.rb
146 Rails/HasAndBelongsToMany:
148 - 'app/models/changeset.rb'
149 - 'app/models/user.rb'
152 # Configuration parameters: Include.
153 # Include: db/migrate/*.rb
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'
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'
174 - 'test/helpers/application_helper_test.rb'
177 # Configuration parameters: EnforcedStyle, SupportedStyles.
178 # SupportedStyles: strict, flexible
185 - 'test/models/message_test.rb'
192 # Cop supports --auto-correct.
193 # Configuration parameters: MaxLineLength.
194 Style/IfUnlessModifier:
196 - 'app/controllers/way_controller.rb'
199 # Cop supports --auto-correct.
200 Style/LineEndConcatenation:
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'
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'
214 # Cop supports --auto-correct.
215 # Configuration parameters: Strict.
216 Style/NumericLiterals:
220 # Cop supports --auto-correct.
221 # Configuration parameters: EnforcedStyle, SupportedStyles.
222 # SupportedStyles: compact, exploded
227 Style/RescueStandardError:
229 - 'app/helpers/browse_helper.rb'