1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2020-09-02 06:16:56 UTC using RuboCop version 0.90.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
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: IgnoredMethods.
48 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
49 # ExcludedMethods: refine
54 # Configuration parameters: CountBlocks.
59 # Configuration parameters: CountComments, CountAsOne.
64 # Configuration parameters: IgnoredMethods.
65 Metrics/CyclomaticComplexity:
69 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
74 # Configuration parameters: CountKeywordArgs.
75 Metrics/ParameterLists:
79 # Configuration parameters: IgnoredMethods.
80 Metrics/PerceivedComplexity:
84 Minitest/MultipleAssertions:
88 Naming/AccessorMethodName:
90 - 'app/controllers/application_controller.rb'
91 - 'app/helpers/title_helper.rb'
92 - 'app/models/old_way.rb'
97 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
98 # NamePrefix: is_, has_, have_
99 # ForbiddenPrefixes: is_, has_, have_
100 # AllowedMethods: is_a?
101 # MethodDefinitionMacros: define_method, define_singleton_method
102 Naming/PredicateName:
105 - 'app/models/changeset.rb'
106 - 'app/models/old_node.rb'
107 - 'app/models/old_relation.rb'
108 - 'app/models/old_way.rb'
109 - 'app/models/user.rb'
110 - 'lib/classic_pagination/pagination.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/20120208194454_add_domain_to_acl.rb'
120 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
123 # Configuration parameters: Include.
124 # Include: app/models/**/*.rb
125 Rails/HasAndBelongsToMany:
127 - 'app/models/changeset.rb'
128 - 'app/models/user.rb'
131 # Configuration parameters: Include.
132 # Include: app/helpers/**/*.rb
133 Rails/HelperInstanceVariable:
135 - 'app/helpers/title_helper.rb'
138 # Configuration parameters: Include.
139 # Include: db/migrate/*.rb
142 - 'db/migrate/002_cleanup_osm_db.rb'
143 - 'db/migrate/020_populate_node_tags_and_remove.rb'
144 - 'db/migrate/021_move_to_innodb.rb'
145 - 'db/migrate/025_add_end_time_to_changesets.rb'
146 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
151 - 'app/controllers/users_controller.rb'
152 - 'app/helpers/application_helper.rb'
154 - 'test/helpers/application_helper_test.rb'
157 # Cop supports --auto-correct.
158 # Configuration parameters: EnforcedStyle.
159 # SupportedStyles: strict, flexible
164 # Cop supports --auto-correct.
165 # Configuration parameters: EnforcedStyle.
166 # SupportedStyles: always, always_true, never
167 Style/FrozenStringLiteralComment:
171 # Cop supports --auto-correct.
172 # Configuration parameters: Strict.
173 Style/NumericLiterals:
177 Style/OptionalBooleanParameter:
179 - 'app/controllers/api/notes_controller.rb'
180 - 'app/controllers/application_controller.rb'
181 - 'app/helpers/browse_helper.rb'
182 - 'app/models/changeset.rb'
183 - 'app/models/node.rb'
184 - 'app/models/relation.rb'
185 - 'app/models/trace.rb'
186 - 'app/models/tracepoint.rb'
187 - 'app/models/way.rb'
188 - 'test/models/diary_entry_test.rb'
189 - 'test/models/trace_test.rb'
190 - 'test/models/tracetag_test.rb'
193 # Cop supports --auto-correct.
194 Style/StringConcatenation: