1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2021-06-29 17:25:37 UTC using RuboCop version 1.18.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.
9 # Work around erblint issues.
10 # https://github.com/openstreetmap/openstreetmap-website/issues/2472
18 # Cop supports --auto-correct.
19 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
20 # URISchemes: http, https
25 # Configuration parameters: AllowSafeAssignment.
26 Lint/AssignmentInCondition:
28 - 'app/controllers/api/traces_controller.rb'
29 - 'app/controllers/api/user_preferences_controller.rb'
30 - 'app/controllers/application_controller.rb'
31 - 'app/controllers/geocoder_controller.rb'
32 - 'app/controllers/notes_controller.rb'
33 - 'app/controllers/traces_controller.rb'
34 - 'app/controllers/users_controller.rb'
35 - 'app/helpers/application_helper.rb'
36 - 'app/helpers/browse_tags_helper.rb'
37 - 'app/mailers/user_mailer.rb'
38 - 'app/models/client_application.rb'
41 - 'script/deliver-message'
44 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
47 - 'app/controllers/api_controller.rb'
48 - 'app/controllers/diary_entries_controller.rb'
49 - 'app/controllers/geocoder_controller.rb'
50 - 'app/helpers/browse_tags_helper.rb'
51 - 'lib/password_hash.rb'
54 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
59 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
60 # IgnoredMethods: refine
65 # Configuration parameters: CountBlocks.
70 # Configuration parameters: CountComments, CountAsOne.
75 # Configuration parameters: IgnoredMethods.
76 Metrics/CyclomaticComplexity:
80 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
85 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
86 Metrics/ParameterLists:
90 # Configuration parameters: IgnoredMethods.
91 Metrics/PerceivedComplexity:
95 Minitest/MultipleAssertions:
99 Naming/AccessorMethodName:
101 - 'app/controllers/application_controller.rb'
102 - 'app/helpers/title_helper.rb'
106 # Configuration parameters: CheckIdentifiers, CheckConstants, CheckVariables, CheckStrings, CheckSymbols, CheckComments, CheckFilepaths, FlaggedTerms.
107 Naming/InclusiveLanguage:
109 - 'app/controllers/sessions_controller.rb'
110 - 'app/controllers/users_controller.rb'
111 - 'app/helpers/browse_tags_helper.rb'
112 - 'app/views/api/capabilities/show.builder'
113 - 'app/views/confirmations/_resend_success_flash.html.erb'
114 - 'app/views/users/suspended.html.erb'
115 - 'config/environments/production.rb'
116 - 'config/initializers/canonical_rails.rb'
117 - 'config/initializers/config.rb'
118 - 'config/initializers/doorkeeper.rb'
121 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
122 # NamePrefix: is_, has_, have_
123 # ForbiddenPrefixes: is_, has_, have_
124 # AllowedMethods: is_a?
125 # MethodDefinitionMacros: define_method, define_singleton_method
126 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: Database, Include.
137 # SupportedDatabases: mysql, postgresql
138 # Include: db/migrate/*.rb
139 Rails/BulkChangeTable:
141 - 'db/migrate/20111116184519_update_oauth.rb'
142 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
143 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
146 # Configuration parameters: Include.
147 # Include: app/models/**/*.rb
148 Rails/HasAndBelongsToMany:
150 - 'app/models/changeset.rb'
151 - 'app/models/user.rb'
154 # Configuration parameters: Include.
155 # Include: app/helpers/**/*.rb
156 Rails/HelperInstanceVariable:
158 - 'app/helpers/title_helper.rb'
161 # Configuration parameters: Include.
162 # Include: app/controllers/**/*.rb
163 Rails/LexicallyScopedActionFilter:
165 - 'app/controllers/oauth2_applications_controller.rb'
168 # Configuration parameters: Include.
169 # Include: db/migrate/*.rb
172 - 'db/migrate/002_cleanup_osm_db.rb'
173 - 'db/migrate/020_populate_node_tags_and_remove.rb'
174 - 'db/migrate/021_move_to_innodb.rb'
175 - 'db/migrate/025_add_end_time_to_changesets.rb'
176 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
181 - 'app/controllers/sessions_controller.rb'
182 - 'app/controllers/users_controller.rb'
183 - 'app/helpers/application_helper.rb'
185 - 'test/helpers/application_helper_test.rb'
188 # Cop supports --auto-correct.
189 # Configuration parameters: EnforcedStyle.
190 # SupportedStyles: strict, flexible
195 # Cop supports --auto-correct.
198 - 'lib/tasks/auto_annotate_models.rake'
199 - 'lib/tasks/eslint.rake'
200 - 'lib/tasks/subscribe_diary_authors.rake'
201 - 'lib/tasks/subscribe_old_changesets.rake'
204 # Cop supports --auto-correct.
205 # Configuration parameters: EnforcedStyle.
206 # SupportedStyles: always, always_true, never
207 Style/FrozenStringLiteralComment:
211 # Cop supports --auto-correct.
212 # Configuration parameters: Strict.
213 Style/NumericLiterals: