1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2019-12-08 10:39:57 -0500 using RuboCop version 0.77.0 .
3
+ # on 2023-03-30 00:44:45 UTC using RuboCop version 1.48.1 .
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: 8
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
12
- Bundler/DuplicatedGem :
13
- Exclude :
14
- - ' Gemfile'
15
-
16
- # Offense count: 8
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
19
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
20
- Bundler/OrderedGems :
21
- Exclude :
22
- - ' Gemfile'
23
-
24
9
# Offense count: 1
25
- # Cop supports --auto-correct.
26
- Layout/EmptyLineAfterGuardClause :
27
- Exclude :
28
- - ' app/controllers/grape_swagger_rails/application_controller.rb'
29
-
30
- # Offense count: 1
31
- # Cop supports --auto-correct.
32
- Layout/EmptyLineAfterMagicComment :
10
+ # Configuration parameters: Severity, Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion :
33
13
Exclude :
34
14
- ' grape-swagger-rails.gemspec'
35
15
36
- # Offense count: 1
37
- # Cop supports --auto-correct.
38
- Layout/EmptyLinesAroundArguments :
39
- Exclude :
40
- - ' lib/grape-swagger-rails.rb'
41
-
42
- # Offense count: 12
43
- # Cop supports --auto-correct.
44
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
45
- # SupportedHashRocketStyles: key, separator, table
46
- # SupportedColonStyles: key, separator, table
47
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
48
- Layout/HashAlignment :
49
- Exclude :
50
- - ' lib/grape-swagger-rails.rb'
51
-
52
- # Offense count: 1
53
- Lint/AmbiguousRegexpLiteral :
16
+ # Offense count: 2
17
+ # Configuration parameters: AllowedMethods.
18
+ # AllowedMethods: enums
19
+ Lint/ConstantDefinitionInBlock :
54
20
Exclude :
55
21
- ' lib/tasks/swagger_ui.rake'
56
22
57
23
# Offense count: 1
58
- # Configuration parameters: AllowSafeAssignment.
59
- Lint/AssignmentInCondition :
60
- Exclude :
61
- - ' spec/dummy/bin/spring'
62
-
63
- # Offense count: 2
64
- # Cop supports --auto-correct.
65
- Lint/ScriptPermission :
66
- Exclude :
67
- - ' Rakefile'
68
- - ' spec/dummy/Rakefile'
69
-
70
- # Offense count: 2
71
- # Configuration parameters: AllowComments.
72
- Lint/SuppressedException :
24
+ Lint/MixedRegexpCaptureTypes :
73
25
Exclude :
74
- - ' spec/dummy/bin/rails'
75
- - ' spec/dummy/bin/rake'
26
+ - ' lib/tasks/swagger_ui.rake'
76
27
77
28
# Offense count: 9
78
- # Configuration parameters: CountComments, ExcludedMethods .
79
- # ExcludedMethods : refine
29
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns .
30
+ # AllowedMethods : refine
80
31
Metrics/BlockLength :
81
32
Max : 282
82
33
83
34
# Offense count: 2
84
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
35
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
36
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
85
37
# 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
86
38
Naming/FileName :
87
39
Exclude :
88
40
- ' lib/grape-swagger-rails.rb'
89
41
- ' spec/features/grape-swagger-rails_spec.rb'
90
42
91
- # Offense count: 2
92
- # Cop supports --auto-correct.
93
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
94
- # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
95
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
96
- # FunctionalMethods: let, let!, subject, watch
97
- # IgnoredMethods: lambda, proc, it
98
- Style/BlockDelimiters :
99
- Exclude :
100
- - ' lib/tasks/swagger_ui.rake'
101
-
102
43
# Offense count: 4
44
+ # Configuration parameters: AllowedConstants.
103
45
Style/Documentation :
104
46
Exclude :
105
47
- ' spec/**/*'
@@ -108,72 +50,9 @@ Style/Documentation:
108
50
- ' lib/grape-swagger-rails.rb'
109
51
- ' lib/grape-swagger-rails/engine.rb'
110
52
111
- # Offense count: 2
112
- # Cop supports --auto-correct.
113
- # Configuration parameters: EnforcedStyle.
114
- # SupportedStyles: compact, expanded
115
- Style/EmptyMethod :
116
- Exclude :
117
- - ' app/controllers/grape_swagger_rails/application_controller.rb'
118
- - ' spec/dummy/app/controllers/welcome_controller.rb'
119
-
120
53
# Offense count: 1
121
- # Cop supports --auto-correct.
122
- Style/Encoding :
123
- Exclude :
124
- - ' grape-swagger-rails.gemspec'
125
-
126
- # Offense count: 14
127
- # Cop supports --auto-correct.
128
- Style/ExpandPathArguments :
129
- Exclude :
130
- - ' Rakefile'
131
- - ' grape-swagger-rails.gemspec'
132
- - ' lib/script/rails'
133
- - ' lib/tasks/swagger_ui.rake'
134
- - ' spec/dummy/Rakefile'
135
- - ' spec/dummy/bin/bundle'
136
- - ' spec/dummy/bin/rails'
137
- - ' spec/dummy/bin/rake'
138
- - ' spec/dummy/config/application.rb'
139
- - ' spec/dummy/config/boot.rb'
140
- - ' spec/dummy/config/environment.rb'
141
- - ' spec/spec_helper.rb'
142
-
143
- # Offense count: 37
144
- # Cop supports --auto-correct.
145
- # Configuration parameters: EnforcedStyle.
146
- # SupportedStyles: always, never
147
- Style/FrozenStringLiteralComment :
148
- Enabled : false
149
-
150
- # Offense count: 3
151
- # Cop supports --auto-correct.
152
- # Configuration parameters: PreferredDelimiters.
153
- Style/PercentLiteralDelimiters :
154
- Exclude :
155
- - ' grape-swagger-rails.gemspec'
156
- - ' lib/grape-swagger-rails.rb'
157
- - ' spec/features/swagger_spec.rb'
158
-
159
- # Offense count: 1
160
- # Cop supports --auto-correct.
161
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
162
- # SupportedStyles: slashes, percent_r, mixed
163
- Style/RegexpLiteral :
164
- Exclude :
165
- - ' lib/tasks/swagger_ui.rake'
166
-
167
- # Offense count: 2
168
- # Cop supports --auto-correct.
169
- # Configuration parameters: MinSize.
170
- # SupportedStyles: percent, brackets
171
- Style/SymbolArray :
172
- EnforcedStyle : brackets
173
-
174
- # Offense count: 48
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
54
+ # This cop supports safe autocorrection (--autocorrect).
55
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
177
56
# URISchemes: http, https
178
- Metrics /LineLength :
179
- Max : 129
57
+ Layout /LineLength :
58
+ Max : 124
0 commit comments