1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2020-07-31 18:09:40 UTC using RuboCop version 0.86.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 # Cop supports --auto-correct.
11 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
12 # URISchemes: http, https
17 # Configuration parameters: AllowSafeAssignment.
18 Lint/AssignmentInCondition:
20 - 'app/controllers/api/traces_controller.rb'
21 - 'app/controllers/api/user_preferences_controller.rb'
22 - 'app/controllers/application_controller.rb'
23 - 'app/controllers/geocoder_controller.rb'
24 - 'app/controllers/notes_controller.rb'
25 - 'app/controllers/traces_controller.rb'
26 - 'app/controllers/users_controller.rb'
27 - 'app/helpers/application_helper.rb'
28 - 'app/helpers/browse_tags_helper.rb'
29 - 'app/mailers/notifier.rb'
30 - 'app/models/client_application.rb'
33 - 'script/deliver-message'
36 # Configuration parameters: IgnoredMethods.
41 # Configuration parameters: CountComments, ExcludedMethods.
42 # ExcludedMethods: refine
47 # Configuration parameters: CountBlocks.
52 # Configuration parameters: CountComments.
57 # Configuration parameters: IgnoredMethods.
58 Metrics/CyclomaticComplexity:
62 # Configuration parameters: CountComments, ExcludedMethods.
67 # Configuration parameters: CountKeywordArgs.
68 Metrics/ParameterLists:
72 # Configuration parameters: IgnoredMethods.
73 Metrics/PerceivedComplexity:
77 Naming/AccessorMethodName:
79 - 'app/controllers/application_controller.rb'
80 - 'app/helpers/title_helper.rb'
81 - 'app/models/old_way.rb'
86 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
87 # NamePrefix: is_, has_, have_
88 # ForbiddenPrefixes: is_, has_, have_
89 # AllowedMethods: is_a?
90 # MethodDefinitionMacros: define_method, define_singleton_method
94 - 'app/models/changeset.rb'
95 - 'app/models/old_node.rb'
96 - 'app/models/old_relation.rb'
97 - 'app/models/old_way.rb'
98 - 'app/models/user.rb'
99 - 'lib/classic_pagination/pagination.rb'
102 # Cop supports --auto-correct.
103 Performance/RegexpMatch:
105 - 'app/helpers/browse_tags_helper.rb'
106 - 'app/validators/characters_validator.rb'
107 - 'app/validators/whitespace_validator.rb'
110 # Configuration parameters: Database, Include.
111 # SupportedDatabases: mysql, postgresql
112 # Include: db/migrate/*.rb
113 Rails/BulkChangeTable:
115 - 'db/migrate/20111116184519_update_oauth.rb'
116 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
117 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
120 # Configuration parameters: Include.
121 # Include: app/models/**/*.rb
122 Rails/HasAndBelongsToMany:
124 - 'app/models/changeset.rb'
125 - 'app/models/user.rb'
128 # Configuration parameters: Include.
129 # Include: app/helpers/**/*.rb
130 Rails/HelperInstanceVariable:
132 - 'app/helpers/application_helper.rb'
133 - 'app/helpers/title_helper.rb'
134 - 'app/helpers/trace_helper.rb'
137 # Configuration parameters: Include.
138 # Include: db/migrate/*.rb
141 - 'db/migrate/002_cleanup_osm_db.rb'
142 - 'db/migrate/020_populate_node_tags_and_remove.rb'
143 - 'db/migrate/021_move_to_innodb.rb'
144 - 'db/migrate/025_add_end_time_to_changesets.rb'
145 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
150 - 'app/controllers/users_controller.rb'
151 - 'app/helpers/application_helper.rb'
152 - 'app/helpers/changesets_helper.rb'
153 - 'app/helpers/geocoder_helper.rb'
154 - 'app/helpers/note_helper.rb'
155 - 'app/helpers/open_graph_helper.rb'
156 - 'app/helpers/user_blocks_helper.rb'
158 - 'test/helpers/application_helper_test.rb'
161 # Cop supports --auto-correct.
162 # Configuration parameters: EnforcedStyle.
163 # SupportedStyles: strict, flexible
168 # Configuration parameters: AllowedChars.
171 - 'test/models/message_test.rb'
174 # Configuration parameters: EnforcedStyle.
175 # SupportedStyles: annotated, template, unannotated
176 Style/FormatStringToken:
178 - 'app/models/concerns/geo_record.rb'
179 - 'app/views/api/map/_bounds.xml.builder'
180 - 'lib/bounding_box.rb'
181 - 'test/controllers/api/map_controller_test.rb'
182 - 'test/controllers/api/relations_controller_test.rb'
183 - 'test/controllers/api/ways_controller_test.rb'
184 - 'test/lib/bounding_box_test.rb'
187 # Cop supports --auto-correct.
188 # Configuration parameters: EnforcedStyle.
189 # SupportedStyles: always, always_true, never
190 Style/FrozenStringLiteralComment:
194 # Cop supports --auto-correct.
195 Style/IfUnlessModifier:
197 - 'app/controllers/api/ways_controller.rb'
200 # Cop supports --auto-correct.
201 # Configuration parameters: Strict.
202 Style/NumericLiterals: