1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2017-07-11 00:59:31 +0100 using RuboCop version 0.47 .0.
3
+ # on 2017-12-10 01:15:22 +0900 using RuboCop version 0.51 .0.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 45
9
+ # Offense count: 7
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
12
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
13
+ Layout/IndentHeredoc :
14
+ Exclude :
15
+ - ' lib/grape/router/route.rb'
16
+ - ' spec/grape/api_spec.rb'
17
+ - ' spec/grape/entity_spec.rb'
18
+
19
+ # Offense count: 2
20
+ Lint/AmbiguousBlockAssociation :
21
+ Exclude :
22
+ - ' lib/grape/middleware/stack.rb'
23
+ - ' spec/grape/dsl/routing_spec.rb'
24
+
25
+ # Offense count: 1
26
+ Lint/RescueWithoutErrorClass :
27
+ Exclude :
28
+ - ' lib/grape/validations/validators/coerce.rb'
29
+
30
+ # Offense count: 49
10
31
Metrics/AbcSize :
11
32
Max : 44
12
33
13
- # Offense count: 279
34
+ # Offense count: 282
14
35
# Configuration parameters: CountComments, ExcludedMethods.
15
36
Metrics/BlockLength :
16
37
Max : 3117
17
38
18
- # Offense count: 8
39
+ # Offense count: 9
19
40
# Configuration parameters: CountComments.
20
41
Metrics/ClassLength :
21
42
Max : 288
22
43
23
- # Offense count: 28
44
+ # Offense count: 32
24
45
Metrics/CyclomaticComplexity :
25
46
Max : 14
26
47
27
- # Offense count: 1114
48
+ # Offense count: 1159
28
49
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
29
50
# URISchemes: http, https
30
51
Metrics/LineLength :
31
52
Max : 215
32
53
33
- # Offense count: 56
54
+ # Offense count: 57
34
55
# Configuration parameters: CountComments.
35
56
Metrics/MethodLength :
36
57
Max : 33
37
58
38
- # Offense count: 10
59
+ # Offense count: 11
39
60
# Configuration parameters: CountComments.
40
61
Metrics/ModuleLength :
41
62
Max : 212
42
63
43
- # Offense count: 17
64
+ # Offense count: 21
44
65
Metrics/PerceivedComplexity :
45
66
Max : 14
46
67
47
- # Offense count: 2
68
+ # Offense count: 4
69
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
70
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
71
+ Naming/FileName :
72
+ Exclude :
73
+ - ' Appraisals'
74
+ - ' Gemfile'
75
+ - ' Guardfile'
76
+ - ' Rakefile'
77
+
78
+ # Offense count: 1
79
+ # Configuration parameters: Blacklist.
80
+ # Blacklist: END, (?-mix:EO[A-Z]{1})
81
+ Naming/HeredocDelimiterNaming :
82
+ Exclude :
83
+ - ' lib/grape/router/route.rb'
84
+
85
+ # Offense count: 3
86
+ # Cop supports --auto-correct.
87
+ # Configuration parameters: AutoCorrect.
88
+ Performance/HashEachMethods :
89
+ Exclude :
90
+ - ' lib/grape/api.rb'
91
+ - ' lib/grape/middleware/versioner/header.rb'
92
+
93
+ # Offense count: 1
94
+ # Cop supports --auto-correct.
95
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
96
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
97
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
98
+ # FunctionalMethods: let, let!, subject, watch
99
+ # IgnoredMethods: lambda, proc, it
48
100
Style/BlockDelimiters :
49
101
Exclude :
50
102
- ' spec/grape/middleware/formatter_spec.rb'
51
103
104
+ # Offense count: 1
105
+ Style/CommentedKeyword :
106
+ Exclude :
107
+ - ' spec/grape/validations_spec.rb'
108
+
109
+ # Offense count: 2
110
+ # Configuration parameters: SupportedStyles.
111
+ # SupportedStyles: annotated, template
112
+ Style/FormatStringToken :
113
+ EnforcedStyle : template
114
+
52
115
# Offense count: 2
53
116
Style/IdenticalConditionalBranches :
54
117
Exclude :
@@ -58,3 +121,8 @@ Style/IdenticalConditionalBranches:
58
121
Style/MethodMissing :
59
122
Exclude :
60
123
- ' lib/grape/router/attribute_translator.rb'
124
+
125
+ # Offense count: 1
126
+ Style/MultipleComparison :
127
+ Exclude :
128
+ - ' lib/grape/validations/types/custom_type_coercer.rb'
0 commit comments