]> git.openstreetmap.org Git - rails.git/blob - .rubocop_todo.yml
Remove temporary development code
[rails.git] / .rubocop_todo.yml
1 # This configuration was generated by
2 # `rubocop --auto-gen-config`
3 # on 2018-09-19 14:24:02 +0100 using RuboCop version 0.58.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.
8
9 # Offense count: 32
10 # Configuration parameters: AllowSafeAssignment.
11 Lint/AssignmentInCondition:
12   Exclude:
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/users_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'
23     - 'lib/nominatim.rb'
24     - 'lib/osm.rb'
25     - 'script/deliver-message'
26
27 # Offense count: 4
28 Lint/HandleExceptions:
29   Exclude:
30     - 'app/controllers/amf_controller.rb'
31     - 'app/controllers/users_controller.rb'
32
33 # Offense count: 692
34 Metrics/AbcSize:
35   Max: 280
36
37 # Offense count: 40
38 # Configuration parameters: CountComments, ExcludedMethods.
39 # ExcludedMethods: refine
40 Metrics/BlockLength:
41   Max: 262
42
43 # Offense count: 11
44 # Configuration parameters: CountBlocks.
45 Metrics/BlockNesting:
46   Max: 5
47
48 # Offense count: 63
49 # Configuration parameters: CountComments.
50 Metrics/ClassLength:
51   Max: 1795
52
53 # Offense count: 72
54 Metrics/CyclomaticComplexity:
55   Max: 20
56
57 # Offense count: 691
58 # Configuration parameters: CountComments.
59 Metrics/MethodLength:
60   Max: 179
61
62 # Offense count: 2
63 # Configuration parameters: CountComments.
64 Metrics/ModuleLength:
65   Max: 135
66
67 # Offense count: 4
68 # Configuration parameters: CountKeywordArgs.
69 Metrics/ParameterLists:
70   Max: 9
71
72 # Offense count: 72
73 Metrics/PerceivedComplexity:
74   Max: 23
75
76 # Offense count: 6
77 Naming/AccessorMethodName:
78   Exclude:
79     - 'app/controllers/application_controller.rb'
80     - 'app/helpers/title_helper.rb'
81     - 'app/models/old_way.rb'
82     - 'lib/osm.rb'
83     - 'lib/potlatch.rb'
84
85 # Offense count: 8
86 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
87 # NamePrefix: is_, has_, have_
88 # NamePrefixBlacklist: is_, has_, have_
89 # NameWhitelist: is_a?
90 # MethodDefinitionMacros: define_method, define_singleton_method
91 Naming/PredicateName:
92   Exclude:
93     - 'spec/**/*'
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'
100
101 # Offense count: 6
102 # Configuration parameters: Database, Include.
103 # SupportedDatabases: mysql, postgresql
104 # Include: db/migrate/*.rb
105 Rails/BulkChangeTable:
106   Exclude:
107     - 'db/migrate/20111116184519_update_oauth.rb'
108     - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
109     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
110     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
111
112 # Offense count: 2
113 # Configuration parameters: Include.
114 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
115 Rails/Exit:
116   Exclude:
117     - 'lib/**/*.rake'
118     - 'lib/daemons/gpx_import.rb'
119
120 # Offense count: 2
121 # Configuration parameters: Include.
122 # Include: app/models/**/*.rb
123 Rails/HasAndBelongsToMany:
124   Exclude:
125     - 'app/models/changeset.rb'
126     - 'app/models/user.rb'
127
128 # Offense count: 5
129 # Configuration parameters: Include.
130 # Include: db/migrate/*.rb
131 Rails/NotNullColumn:
132   Exclude:
133     - 'db/migrate/002_cleanup_osm_db.rb'
134     - 'db/migrate/020_populate_node_tags_and_remove.rb'
135     - 'db/migrate/021_move_to_innodb.rb'
136     - 'db/migrate/025_add_end_time_to_changesets.rb'
137     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
138
139 # Offense count: 20
140 Rails/OutputSafety:
141   Exclude:
142     - 'app/controllers/users_controller.rb'
143     - 'app/helpers/application_helper.rb'
144     - 'app/helpers/changeset_helper.rb'
145     - 'app/helpers/geocoder_helper.rb'
146     - 'app/helpers/note_helper.rb'
147     - 'app/helpers/open_graph_helper.rb'
148     - 'app/helpers/user_blocks_helper.rb'
149     - 'app/helpers/user_roles_helper.rb'
150     - 'lib/rich_text.rb'
151     - 'test/helpers/application_helper_test.rb'
152
153 # Offense count: 86
154 # Configuration parameters: EnforcedStyle.
155 # SupportedStyles: strict, flexible
156 Rails/TimeZone:
157   Enabled: false
158
159 # Offense count: 1
160 # Configuration parameters: AllowedChars.
161 Style/AsciiComments:
162   Exclude:
163     - 'test/models/message_test.rb'
164
165 # Offense count: 230
166 Style/Documentation:
167   Enabled: false
168
169 # Offense count: 462
170 # Cop supports --auto-correct.
171 # Configuration parameters: EnforcedStyle.
172 # SupportedStyles: when_needed, always, never
173 Style/FrozenStringLiteralComment:
174   Enabled: false
175
176 # Offense count: 2
177 # Cop supports --auto-correct.
178 Style/IfUnlessModifier:
179   Exclude:
180     - 'app/controllers/way_controller.rb'
181
182 # Offense count: 70
183 # Cop supports --auto-correct.
184 # Configuration parameters: Strict.
185 Style/NumericLiterals:
186   MinDigits: 11
187
188 # Offense count: 3080
189 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
190 # URISchemes: http, https
191 Metrics/LineLength:
192   Max: 1073