e3154ac45491a902f2b37ea051947a67072e555c
[rails.git] / .rubocop_todo.yml
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.
8
9 # Offense count: 34
10 Lint/AmbiguousOperator:
11   Exclude:
12     - 'test/controllers/amf_controller_test.rb'
13     - 'test/controllers/changeset_controller_test.rb'
14     - 'test/lib/bounding_box_test.rb'
15     - 'test/lib/country_test.rb'
16
17 # Offense count: 32
18 # Configuration parameters: AllowSafeAssignment.
19 Lint/AssignmentInCondition:
20   Exclude:
21     - 'app/controllers/application_controller.rb'
22     - 'app/controllers/geocoder_controller.rb'
23     - 'app/controllers/notes_controller.rb'
24     - 'app/controllers/traces_controller.rb'
25     - 'app/controllers/user_controller.rb'
26     - 'app/controllers/user_preferences_controller.rb'
27     - 'app/helpers/application_helper.rb'
28     - 'app/helpers/browse_helper.rb'
29     - 'app/models/client_application.rb'
30     - 'app/models/notifier.rb'
31     - 'lib/nominatim.rb'
32     - 'lib/osm.rb'
33     - 'script/deliver-message'
34
35 # Offense count: 4
36 Lint/HandleExceptions:
37   Exclude:
38     - 'app/controllers/amf_controller.rb'
39     - 'app/controllers/user_controller.rb'
40
41 # Offense count: 690
42 Metrics/AbcSize:
43   Max: 280
44
45 # Offense count: 41
46 # Configuration parameters: CountComments, ExcludedMethods.
47 Metrics/BlockLength:
48   Max: 261
49
50 # Offense count: 11
51 # Configuration parameters: CountBlocks.
52 Metrics/BlockNesting:
53   Max: 5
54
55 # Offense count: 63
56 # Configuration parameters: CountComments.
57 Metrics/ClassLength:
58   Max: 1795
59
60 # Offense count: 72
61 Metrics/CyclomaticComplexity:
62   Max: 20
63
64 # Offense count: 688
65 # Configuration parameters: CountComments.
66 Metrics/MethodLength:
67   Max: 179
68
69 # Offense count: 2
70 # Configuration parameters: CountComments.
71 Metrics/ModuleLength:
72   Max: 135
73
74 # Offense count: 4
75 # Configuration parameters: CountKeywordArgs.
76 Metrics/ParameterLists:
77   Max: 9
78
79 # Offense count: 71
80 Metrics/PerceivedComplexity:
81   Max: 23
82
83 # Offense count: 6
84 Naming/AccessorMethodName:
85   Exclude:
86     - 'app/controllers/application_controller.rb'
87     - 'app/helpers/title_helper.rb'
88     - 'app/models/old_way.rb'
89     - 'lib/osm.rb'
90     - 'lib/potlatch.rb'
91
92 # Offense count: 8
93 # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
94 # NamePrefix: is_, has_, have_
95 # NamePrefixBlacklist: is_, has_, have_
96 # NameWhitelist: is_a?
97 # MethodDefinitionMacros: define_method, define_singleton_method
98 Naming/PredicateName:
99   Exclude:
100     - 'spec/**/*'
101     - 'app/models/changeset.rb'
102     - 'app/models/old_node.rb'
103     - 'app/models/old_relation.rb'
104     - 'app/models/old_way.rb'
105     - 'app/models/user.rb'
106     - 'lib/classic_pagination/pagination.rb'
107
108 # Offense count: 6
109 # Configuration parameters: Database, Include.
110 # SupportedDatabases: mysql, postgresql
111 # Include: db/migrate/*.rb
112 Rails/BulkChangeTable:
113   Exclude:
114     - 'db/migrate/20111116184519_update_oauth.rb'
115     - 'db/migrate/20120208122334_merge_acl_address_and_mask.rb'
116     - 'db/migrate/20120208194454_add_domain_to_acl.rb'
117     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
118
119 # Offense count: 2
120 # Configuration parameters: Include.
121 # Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
122 Rails/Exit:
123   Exclude:
124     - 'lib/**/*.rake'
125     - 'lib/daemons/gpx_import.rb'
126
127 # Offense count: 2
128 # Configuration parameters: Include.
129 # Include: app/models/**/*.rb
130 Rails/HasAndBelongsToMany:
131   Exclude:
132     - 'app/models/changeset.rb'
133     - 'app/models/user.rb'
134
135 # Offense count: 5
136 # Configuration parameters: Include.
137 # Include: db/migrate/*.rb
138 Rails/NotNullColumn:
139   Exclude:
140     - 'db/migrate/002_cleanup_osm_db.rb'
141     - 'db/migrate/020_populate_node_tags_and_remove.rb'
142     - 'db/migrate/021_move_to_innodb.rb'
143     - 'db/migrate/025_add_end_time_to_changesets.rb'
144     - 'db/migrate/20120404205604_add_user_and_description_to_redaction.rb'
145
146 # Offense count: 20
147 Rails/OutputSafety:
148   Exclude:
149     - 'app/controllers/user_controller.rb'
150     - 'app/helpers/application_helper.rb'
151     - 'app/helpers/changeset_helper.rb'
152     - 'app/helpers/geocoder_helper.rb'
153     - 'app/helpers/note_helper.rb'
154     - 'app/helpers/open_graph_helper.rb'
155     - 'app/helpers/user_blocks_helper.rb'
156     - 'app/helpers/user_roles_helper.rb'
157     - 'lib/rich_text.rb'
158     - 'test/helpers/application_helper_test.rb'
159
160 # Offense count: 86
161 # Configuration parameters: EnforcedStyle.
162 # SupportedStyles: strict, flexible
163 Rails/TimeZone:
164   Enabled: false
165
166 # Offense count: 1
167 # Configuration parameters: AllowedChars.
168 Style/AsciiComments:
169   Exclude:
170     - 'test/models/message_test.rb'
171
172 # Offense count: 229
173 Style/Documentation:
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: 3064
189 # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
190 # URISchemes: http, https
191 Metrics/LineLength:
192   Max: 1073