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