1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2018-06-19 09:02:55 +0100 using RuboCop version 0.57.2.
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/application_controller.rb'
14 - 'app/controllers/geocoder_controller.rb'
15 - 'app/controllers/notes_controller.rb'
16 - 'app/controllers/traces_controller.rb'
17 - 'app/controllers/user_controller.rb'
18 - 'app/controllers/user_preferences_controller.rb'
19 - 'app/helpers/application_helper.rb'
20 - 'app/helpers/browse_helper.rb'
21 - 'app/models/client_application.rb'
22 - 'app/models/notifier.rb'
25 - 'script/deliver-message'
28 Lint/HandleExceptions:
30 - 'app/controllers/amf_controller.rb'
31 - 'app/controllers/user_controller.rb'
38 # Configuration parameters: CountComments, ExcludedMethods.
43 # Configuration parameters: CountBlocks.
48 # Configuration parameters: CountComments.
53 Metrics/CyclomaticComplexity:
57 # Configuration parameters: CountComments.
62 # Configuration parameters: CountComments.
67 # Configuration parameters: CountKeywordArgs.
68 Metrics/ParameterLists:
72 Metrics/PerceivedComplexity:
76 Naming/AccessorMethodName:
78 - 'app/controllers/application_controller.rb'
79 - 'app/helpers/title_helper.rb'
80 - 'app/models/old_way.rb'
85 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
86 # NamePrefix: is_, has_, have_
87 # NamePrefixBlacklist: is_, has_, have_
88 # NameWhitelist: is_a?
89 # MethodDefinitionMacros: define_method, define_singleton_method
93 - 'app/models/changeset.rb'
94 - 'app/models/old_node.rb'
95 - 'app/models/old_relation.rb'
96 - 'app/models/old_way.rb'
97 - 'app/models/user.rb'
98 - 'lib/classic_pagination/pagination.rb'
101 # Configuration parameters: Database, Include.
102 # SupportedDatabases: mysql, postgresql
103 # Include: db/migrate/*.rb
104 Rails/BulkChangeTable:
106 - 'db/migrate/20111116184519_update_oauth.rb'
107 - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
108 - 'db/migrate/20120208194454_add_domain_to_acl.rb'
109 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
112 # Configuration parameters: Include.
113 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
117 - 'lib/daemons/gpx_import.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: db/migrate/*.rb
132 - 'db/migrate/002_cleanup_osm_db.rb'
133 - 'db/migrate/020_populate_node_tags_and_remove.rb'
134 - 'db/migrate/021_move_to_innodb.rb'
135 - 'db/migrate/025_add_end_time_to_changesets.rb'
136 - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
141 - 'app/controllers/user_controller.rb'
142 - 'app/helpers/application_helper.rb'
143 - 'app/helpers/changeset_helper.rb'
144 - 'app/helpers/geocoder_helper.rb'
145 - 'app/helpers/note_helper.rb'
146 - 'app/helpers/open_graph_helper.rb'
147 - 'app/helpers/user_blocks_helper.rb'
148 - 'app/helpers/user_roles_helper.rb'
150 - 'test/helpers/application_helper_test.rb'
153 # Configuration parameters: EnforcedStyle.
154 # SupportedStyles: strict, flexible
159 # Configuration parameters: AllowedChars.
162 - 'test/models/message_test.rb'
169 # Cop supports --auto-correct.
170 Style/IfUnlessModifier:
172 - 'app/controllers/way_controller.rb'
175 # Cop supports --auto-correct.
176 # Configuration parameters: Strict.
177 Style/NumericLiterals:
180 # Offense count: 3064
181 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
182 # URISchemes: http, https