1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2021-01-11 19:00:54 UTC using RuboCop version 1.8.1.
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.
9 # Work around erblint issues.
10 # https://github.com/openstreetmap/openstreetmap-website/issues/2472
17 # Cop supports --auto-correct.
18 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
19 # URISchemes: http, https
24 # Configuration parameters: AllowSafeAssignment.
25 Lint/AssignmentInCondition:
27 - 'app/controllers/api/traces_controller.rb'
28 - 'app/controllers/api/user_preferences_controller.rb'
29 - 'app/controllers/application_controller.rb'
30 - 'app/controllers/geocoder_controller.rb'
31 - 'app/controllers/notes_controller.rb'
32 - 'app/controllers/traces_controller.rb'
33 - 'app/controllers/users_controller.rb'
34 - 'app/helpers/application_helper.rb'
35 - 'app/helpers/browse_tags_helper.rb'
36 - 'app/mailers/user_mailer.rb'
37 - 'app/models/client_application.rb'
40 - 'script/deliver-message'
43 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
46 - 'app/controllers/api_controller.rb'
47 - 'app/controllers/diary_entries_controller.rb'
48 - 'app/controllers/geocoder_controller.rb'
49 - 'app/helpers/browse_tags_helper.rb'
50 - 'lib/password_hash.rb'
53 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
58 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
59 # IgnoredMethods: refine
64 # Configuration parameters: CountBlocks.
69 # Configuration parameters: CountComments, CountAsOne.
74 # Configuration parameters: IgnoredMethods.
75 Metrics/CyclomaticComplexity:
79 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
84 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
85 Metrics/ParameterLists:
89 # Configuration parameters: IgnoredMethods.
90 Metrics/PerceivedComplexity:
94 Minitest/MultipleAssertions:
98 Naming/AccessorMethodName:
100 - 'app/controllers/application_controller.rb'
101 - 'app/helpers/title_helper.rb'
105 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
106 # NamePrefix: is_, has_, have_
107 # ForbiddenPrefixes: is_, has_, have_
108 # AllowedMethods: is_a?
109 # MethodDefinitionMacros: define_method, define_singleton_method
110 Naming/PredicateName:
112 - 'app/models/changeset.rb'
113 - 'app/models/old_node.rb'
114 - 'app/models/old_relation.rb'
115 - 'app/models/old_way.rb'
116 - 'app/models/user.rb'
117 - 'lib/classic_pagination/pagination.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/20120208194454_add_domain_to_acl.rb'
127 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
130 # Configuration parameters: Include.
131 # Include: app/models/**/*.rb
132 Rails/HasAndBelongsToMany:
134 - 'app/models/changeset.rb'
135 - 'app/models/user.rb'
138 # Configuration parameters: Include.
139 # Include: app/helpers/**/*.rb
140 Rails/HelperInstanceVariable:
142 - 'app/helpers/title_helper.rb'
145 # Configuration parameters: Include.
146 # Include: db/migrate/*.rb
149 - 'db/migrate/002_cleanup_osm_db.rb'
150 - 'db/migrate/020_populate_node_tags_and_remove.rb'
151 - 'db/migrate/021_move_to_innodb.rb'
152 - 'db/migrate/025_add_end_time_to_changesets.rb'
153 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
158 - 'app/controllers/users_controller.rb'
159 - 'app/helpers/application_helper.rb'
161 - 'test/helpers/application_helper_test.rb'
164 # Cop supports --auto-correct.
165 # Configuration parameters: EnforcedStyle.
166 # SupportedStyles: strict, flexible
171 # Cop supports --auto-correct.
172 # Configuration parameters: EnforcedStyle.
173 # SupportedStyles: always, always_true, never
174 Style/FrozenStringLiteralComment:
178 # Cop supports --auto-correct.
179 # Configuration parameters: Strict.
180 Style/NumericLiterals: