1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2019-10-19 16:05:52 +0000 using RuboCop version 0.75.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: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
12 # URISchemes: http, https
17 # Configuration parameters: AllowSafeAssignment.
18 Lint/AssignmentInCondition:
20 - 'app/controllers/api/traces_controller.rb'
21 - 'app/controllers/api/user_preferences_controller.rb'
22 - 'app/controllers/application_controller.rb'
23 - 'app/controllers/geocoder_controller.rb'
24 - 'app/controllers/notes_controller.rb'
25 - 'app/controllers/traces_controller.rb'
26 - 'app/controllers/users_controller.rb'
27 - 'app/helpers/application_helper.rb'
28 - 'app/helpers/browse_tags_helper.rb'
29 - 'app/mailers/notifier.rb'
30 - 'app/models/client_application.rb'
33 - 'script/deliver-message'
36 # Configuration parameters: AllowComments.
37 Lint/SuppressedException:
39 - 'app/controllers/api/amf_controller.rb'
40 - 'app/controllers/users_controller.rb'
41 - 'app/controllers/site_controller.rb'
48 # Configuration parameters: CountComments, ExcludedMethods.
49 # ExcludedMethods: refine
54 # Configuration parameters: CountBlocks.
59 # Configuration parameters: CountComments.
64 Metrics/CyclomaticComplexity:
68 # Configuration parameters: CountComments, ExcludedMethods.
73 # Configuration parameters: CountComments.
78 # Configuration parameters: CountKeywordArgs.
79 Metrics/ParameterLists:
83 Metrics/PerceivedComplexity:
87 Naming/AccessorMethodName:
89 - 'app/controllers/application_controller.rb'
90 - 'app/helpers/title_helper.rb'
91 - 'app/models/old_way.rb'
96 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
97 # NamePrefix: is_, has_, have_
98 # NamePrefixBlacklist: is_, has_, have_
99 # NameWhitelist: is_a?
100 # MethodDefinitionMacros: define_method, define_singleton_method
101 Naming/PredicateName:
104 - 'app/models/changeset.rb'
105 - 'app/models/old_node.rb'
106 - 'app/models/old_relation.rb'
107 - 'app/models/old_way.rb'
108 - 'app/models/user.rb'
109 - 'lib/classic_pagination/pagination.rb'
112 # Cop supports --auto-correct.
113 Performance/RegexpMatch:
115 - 'app/helpers/browse_tags_helper.rb'
116 - 'app/validators/characters_validator.rb'
117 - 'app/validators/whitespace_validator.rb'
120 # Configuration parameters: Database, Include.
121 # SupportedDatabases: mysql, postgresql
122 # Include: db/migrate/*.rb
123 Rails/BulkChangeTable:
125 - 'db/migrate/20111116184519_update_oauth.rb'
126 - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
127 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
128 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
131 # Configuration parameters: Include.
132 # Include: app/models/**/*.rb
133 Rails/HasAndBelongsToMany:
135 - 'app/models/changeset.rb'
136 - 'app/models/user.rb'
139 # Configuration parameters: Include.
140 # Include: app/helpers/**/*.rb
141 Rails/HelperInstanceVariable:
143 - 'app/helpers/application_helper.rb'
144 - 'app/helpers/title_helper.rb'
145 - 'app/helpers/trace_helper.rb'
148 # Configuration parameters: Include.
149 # Include: db/migrate/*.rb
152 - 'db/migrate/002_cleanup_osm_db.rb'
153 - 'db/migrate/020_populate_node_tags_and_remove.rb'
154 - 'db/migrate/021_move_to_innodb.rb'
155 - 'db/migrate/025_add_end_time_to_changesets.rb'
156 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
161 - 'app/controllers/users_controller.rb'
162 - 'app/helpers/application_helper.rb'
163 - 'app/helpers/changesets_helper.rb'
164 - 'app/helpers/geocoder_helper.rb'
165 - 'app/helpers/note_helper.rb'
166 - 'app/helpers/open_graph_helper.rb'
167 - 'app/helpers/user_blocks_helper.rb'
169 - 'test/helpers/application_helper_test.rb'
172 # Cop supports --auto-correct.
173 # Configuration parameters: EnforcedStyle.
174 # SupportedStyles: strict, flexible
179 # Configuration parameters: AllowedChars.
182 - 'test/models/message_test.rb'
185 # Configuration parameters: EnforcedStyle.
186 # SupportedStyles: annotated, template, unannotated
187 Style/FormatStringToken:
189 - 'app/models/concerns/geo_record.rb'
190 - 'app/views/api/map/_bounds.xml.builder'
191 - 'lib/bounding_box.rb'
192 - 'test/controllers/api/map_controller_test.rb'
193 - 'test/controllers/api/relations_controller_test.rb'
194 - 'test/controllers/api/ways_controller_test.rb'
195 - 'test/lib/bounding_box_test.rb'
198 # Cop supports --auto-correct.
199 # Configuration parameters: EnforcedStyle.
200 # SupportedStyles: always, never
201 Style/FrozenStringLiteralComment:
205 # Cop supports --auto-correct.
206 Style/IfUnlessModifier:
208 - 'app/controllers/api/ways_controller.rb'
211 # Cop supports --auto-correct.
212 # Configuration parameters: Strict.
213 Style/NumericLiterals: