1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2020-08-06 17:20:38 UTC using RuboCop version 0.89.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/notifier.rb'
37 - 'app/models/client_application.rb'
40 - 'script/deliver-message'
45 - 'config/initializers/oauth.rb'
47 - 'lib/session_persistence.rb'
50 # Configuration parameters: IgnoredMethods.
55 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
56 # ExcludedMethods: refine
61 # Configuration parameters: CountBlocks.
66 # Configuration parameters: CountComments, CountAsOne.
71 # Configuration parameters: IgnoredMethods.
72 Metrics/CyclomaticComplexity:
76 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
81 # Configuration parameters: CountKeywordArgs.
82 Metrics/ParameterLists:
86 # Configuration parameters: IgnoredMethods.
87 Metrics/PerceivedComplexity:
91 Naming/AccessorMethodName:
93 - 'app/controllers/application_controller.rb'
94 - 'app/helpers/title_helper.rb'
95 - 'app/models/old_way.rb'
100 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
101 # NamePrefix: is_, has_, have_
102 # ForbiddenPrefixes: is_, has_, have_
103 # AllowedMethods: is_a?
104 # MethodDefinitionMacros: define_method, define_singleton_method
105 Naming/PredicateName:
108 - 'app/models/changeset.rb'
109 - 'app/models/old_node.rb'
110 - 'app/models/old_relation.rb'
111 - 'app/models/old_way.rb'
112 - 'app/models/user.rb'
113 - 'lib/classic_pagination/pagination.rb'
116 # Configuration parameters: Database, Include.
117 # SupportedDatabases: mysql, postgresql
118 # Include: db/migrate/*.rb
119 Rails/BulkChangeTable:
121 - 'db/migrate/20111116184519_update_oauth.rb'
122 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
123 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
126 # Configuration parameters: Include.
127 # Include: app/models/**/*.rb
128 Rails/HasAndBelongsToMany:
130 - 'app/models/changeset.rb'
131 - 'app/models/user.rb'
134 # Configuration parameters: Include.
135 # Include: app/helpers/**/*.rb
136 Rails/HelperInstanceVariable:
138 - 'app/helpers/title_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 # Cop supports --auto-correct.
173 Style/ExplicitBlockArgument:
175 - 'app/controllers/api/amf_controller.rb'
176 - 'app/controllers/application_controller.rb'
177 - 'app/mailers/notifier.rb'
178 - 'test/integration/client_applications_test.rb'
181 # Cop supports --auto-correct.
182 # Configuration parameters: EnforcedStyle.
183 # SupportedStyles: always, always_true, never
184 Style/FrozenStringLiteralComment:
188 # Cop supports --auto-correct.
189 # Configuration parameters: Strict.
190 Style/NumericLiterals:
194 Style/OptionalBooleanParameter:
196 - 'app/controllers/api/notes_controller.rb'
197 - 'app/controllers/application_controller.rb'
198 - 'app/helpers/browse_helper.rb'
199 - 'app/models/changeset.rb'
200 - 'app/models/node.rb'
201 - 'app/models/relation.rb'
202 - 'app/models/trace.rb'
203 - 'app/models/tracepoint.rb'
204 - 'app/models/way.rb'
205 - 'test/models/diary_entry_test.rb'
206 - 'test/models/trace_test.rb'
207 - 'test/models/tracetag_test.rb'
210 # Cop supports --auto-correct.
211 Style/StringConcatenation: