1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2019-06-05 09:04:25 +0100 using RuboCop version 0.71.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 # Configuration parameters: AllowSafeAssignment.
11 Lint/AssignmentInCondition:
13 - 'app/controllers/api/traces_controller.rb'
14 - 'app/controllers/api/user_preferences_controller.rb'
15 - 'app/controllers/application_controller.rb'
16 - 'app/controllers/geocoder_controller.rb'
17 - 'app/controllers/notes_controller.rb'
18 - 'app/controllers/traces_controller.rb'
19 - 'app/controllers/users_controller.rb'
20 - 'app/helpers/application_helper.rb'
21 - 'app/helpers/browse_tags_helper.rb'
22 - 'app/mailers/notifier.rb'
23 - 'app/models/client_application.rb'
26 - 'script/deliver-message'
29 # Configuration parameters: AllowComments.
30 Lint/HandleExceptions:
32 - 'app/controllers/api/amf_controller.rb'
33 - 'app/controllers/users_controller.rb'
40 # Configuration parameters: CountComments, ExcludedMethods.
41 # ExcludedMethods: refine
46 # Configuration parameters: CountBlocks.
51 # Configuration parameters: CountComments.
56 Metrics/CyclomaticComplexity:
60 # Configuration parameters: CountComments, ExcludedMethods.
65 # Configuration parameters: CountComments.
70 # Configuration parameters: CountKeywordArgs.
71 Metrics/ParameterLists:
75 Metrics/PerceivedComplexity:
79 Naming/AccessorMethodName:
81 - 'app/controllers/application_controller.rb'
82 - 'app/helpers/title_helper.rb'
83 - 'app/models/old_way.rb'
88 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
89 # NamePrefix: is_, has_, have_
90 # NamePrefixBlacklist: is_, has_, have_
91 # NameWhitelist: is_a?
92 # MethodDefinitionMacros: define_method, define_singleton_method
96 - 'app/models/changeset.rb'
97 - 'app/models/old_node.rb'
98 - 'app/models/old_relation.rb'
99 - 'app/models/old_way.rb'
100 - 'app/models/user.rb'
101 - 'lib/classic_pagination/pagination.rb'
104 # Configuration parameters: Include.
105 # Include: app/models/**/*.rb
106 Rails/ActiveRecordOverride:
108 - 'app/models/trace.rb'
111 # Configuration parameters: Database, Include.
112 # SupportedDatabases: mysql, postgresql
113 # Include: db/migrate/*.rb
114 Rails/BulkChangeTable:
116 - 'db/migrate/20111116184519_update_oauth.rb'
117 - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
118 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
119 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
122 # Configuration parameters: Include.
123 # Include: app/models/**/*.rb
124 Rails/HasAndBelongsToMany:
126 - 'app/models/changeset.rb'
127 - 'app/models/user.rb'
130 # Configuration parameters: Include.
131 # Include: app/helpers/**/*.rb
132 Rails/HelperInstanceVariable:
134 - 'app/helpers/application_helper.rb'
135 - 'app/helpers/title_helper.rb'
136 - 'app/helpers/trace_helper.rb'
139 # Configuration parameters: Include.
140 # Include: db/migrate/*.rb
143 - 'db/migrate/002_cleanup_osm_db.rb'
144 - 'db/migrate/020_populate_node_tags_and_remove.rb'
145 - 'db/migrate/021_move_to_innodb.rb'
146 - 'db/migrate/025_add_end_time_to_changesets.rb'
147 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
152 - 'app/controllers/users_controller.rb'
153 - 'app/helpers/application_helper.rb'
154 - 'app/helpers/changesets_helper.rb'
155 - 'app/helpers/geocoder_helper.rb'
156 - 'app/helpers/note_helper.rb'
157 - 'app/helpers/open_graph_helper.rb'
158 - 'app/helpers/user_blocks_helper.rb'
160 - 'test/helpers/application_helper_test.rb'
163 # Cop supports --auto-correct.
164 # Configuration parameters: EnforcedStyle.
165 # SupportedStyles: strict, flexible
170 # Configuration parameters: AllowedChars.
173 - 'test/models/message_test.rb'
180 # Cop supports --auto-correct.
181 # Configuration parameters: EnforcedStyle.
182 # SupportedStyles: always, never
183 Style/FrozenStringLiteralComment:
187 # Cop supports --auto-correct.
188 Style/IfUnlessModifier:
190 - 'app/controllers/api/ways_controller.rb'
193 # Cop supports --auto-correct.
194 # Configuration parameters: Strict.
195 Style/NumericLiterals:
198 # Offense count: 3320
199 # Cop supports --auto-correct.
200 # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
201 # URISchemes: http, https