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 # Configuration parameters: AllowSafeAssignment.
11 Lint/AssignmentInCondition:
13 - 'app/controllers/api/traces_controller.rb'
14 - 'app/controllers/api/user_preferences_controller.rb'
15 - 'app/controllers/application_controller.rb'
16 - 'app/controllers/geocoder_controller.rb'
17 - 'app/controllers/notes_controller.rb'
18 - 'app/controllers/traces_controller.rb'
19 - 'app/controllers/users_controller.rb'
20 - 'app/helpers/application_helper.rb'
21 - 'app/helpers/browse_tags_helper.rb'
22 - 'app/mailers/notifier.rb'
23 - 'app/models/client_application.rb'
26 - 'script/deliver-message'
29 # Configuration parameters: AllowComments.
30 Lint/SuppressedException:
32 - 'app/controllers/api/amf_controller.rb'
33 - 'app/controllers/users_controller.rb'
34 - 'app/controllers/site_controller.rb'
41 # Configuration parameters: CountComments, ExcludedMethods.
42 # ExcludedMethods: refine
47 # Configuration parameters: CountBlocks.
52 # Configuration parameters: CountComments.
57 Metrics/CyclomaticComplexity:
61 # Configuration parameters: CountComments, ExcludedMethods.
66 # Configuration parameters: CountComments.
71 # Configuration parameters: CountKeywordArgs.
72 Metrics/ParameterLists:
76 Metrics/PerceivedComplexity:
80 Naming/AccessorMethodName:
82 - 'app/controllers/application_controller.rb'
83 - 'app/helpers/title_helper.rb'
84 - 'app/models/old_way.rb'
89 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
90 # NamePrefix: is_, has_, have_
91 # NamePrefixBlacklist: is_, has_, have_
92 # NameWhitelist: is_a?
93 # MethodDefinitionMacros: define_method, define_singleton_method
97 - 'app/models/changeset.rb'
98 - 'app/models/old_node.rb'
99 - 'app/models/old_relation.rb'
100 - 'app/models/old_way.rb'
101 - 'app/models/user.rb'
102 - 'lib/classic_pagination/pagination.rb'
105 # Cop supports --auto-correct.
106 Performance/RegexpMatch:
108 - 'app/helpers/browse_tags_helper.rb'
109 - 'app/validators/characters_validator.rb'
110 - 'app/validators/whitespace_validator.rb'
113 # Configuration parameters: Database, Include.
114 # SupportedDatabases: mysql, postgresql
115 # Include: db/migrate/*.rb
116 Rails/BulkChangeTable:
118 - 'db/migrate/20111116184519_update_oauth.rb'
119 - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
120 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
121 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
124 # Configuration parameters: Include.
125 # Include: app/models/**/*.rb
126 Rails/HasAndBelongsToMany:
128 - 'app/models/changeset.rb'
129 - 'app/models/user.rb'
132 # Configuration parameters: Include.
133 # Include: app/helpers/**/*.rb
134 Rails/HelperInstanceVariable:
136 - 'app/helpers/application_helper.rb'
137 - 'app/helpers/title_helper.rb'
138 - 'app/helpers/trace_helper.rb'
141 # Configuration parameters: Include.
142 # Include: db/migrate/*.rb
145 - 'db/migrate/002_cleanup_osm_db.rb'
146 - 'db/migrate/020_populate_node_tags_and_remove.rb'
147 - 'db/migrate/021_move_to_innodb.rb'
148 - 'db/migrate/025_add_end_time_to_changesets.rb'
149 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
154 - 'app/controllers/users_controller.rb'
155 - 'app/helpers/application_helper.rb'
156 - 'app/helpers/changesets_helper.rb'
157 - 'app/helpers/geocoder_helper.rb'
158 - 'app/helpers/note_helper.rb'
159 - 'app/helpers/open_graph_helper.rb'
160 - 'app/helpers/user_blocks_helper.rb'
162 - 'test/helpers/application_helper_test.rb'
165 # Cop supports --auto-correct.
166 # Configuration parameters: EnforcedStyle.
167 # SupportedStyles: strict, flexible
172 # Configuration parameters: AllowedChars.
175 - 'test/models/message_test.rb'
178 # Configuration parameters: EnforcedStyle.
179 # SupportedStyles: annotated, template, unannotated
180 Style/FormatStringToken:
182 - 'app/models/concerns/geo_record.rb'
183 - 'app/views/api/map/_bounds.xml.builder'
184 - 'lib/bounding_box.rb'
185 - 'test/controllers/api/map_controller_test.rb'
186 - 'test/controllers/api/relations_controller_test.rb'
187 - 'test/controllers/api/ways_controller_test.rb'
188 - 'test/lib/bounding_box_test.rb'
191 # Cop supports --auto-correct.
192 # Configuration parameters: EnforcedStyle.
193 # SupportedStyles: always, never
194 Style/FrozenStringLiteralComment:
198 # Cop supports --auto-correct.
199 Style/IfUnlessModifier:
201 - 'app/controllers/api/ways_controller.rb'
204 # Cop supports --auto-correct.
205 # Configuration parameters: Strict.
206 Style/NumericLiterals:
209 # Offense count: 3338
210 # Cop supports --auto-correct.
211 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
212 # URISchemes: http, https