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