1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-04-13 12:45:07 UTC using RuboCop version 1.50.1 .
3
+ # on 2023-09-12 16:29:51 UTC using RuboCop version 1.56.3 .
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
- Naming/FileName :
10
- Exclude :
11
- - ' lib/puppet-strings.rb'
12
-
13
- Naming/MethodName :
14
- Exclude :
15
- - ' lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb'
16
- - ' lib/puppet-strings/yard/parsers/puppet/parser.rb'
17
-
18
9
# Offense count: 1
19
10
# This cop supports safe autocorrection (--autocorrect).
20
11
# Configuration parameters: Severity, Include.
@@ -23,16 +14,16 @@ Gemspec/RequireMFA:
23
14
Exclude :
24
15
- ' puppet-strings.gemspec'
25
16
26
- # Offense count: 46
17
+ # Offense count: 45
27
18
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
28
19
Metrics/AbcSize :
29
- Max : 98
20
+ Max : 95
30
21
31
- # Offense count: 11
22
+ # Offense count: 10
32
23
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
33
24
# AllowedMethods: refine
34
25
Metrics/BlockLength :
35
- Max : 119
26
+ Max : 44
36
27
37
28
# Offense count: 1
38
29
# Configuration parameters: CountBlocks.
@@ -44,23 +35,23 @@ Metrics/BlockNesting:
44
35
Metrics/ClassLength :
45
36
Max : 283
46
37
47
- # Offense count: 33
38
+ # Offense count: 34
48
39
# Configuration parameters: AllowedMethods, AllowedPatterns.
49
40
Metrics/CyclomaticComplexity :
50
41
Max : 36
51
42
52
- # Offense count: 44
43
+ # Offense count: 42
53
44
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
54
45
Metrics/MethodLength :
55
46
Max : 75
56
47
57
- # Offense count: 2
48
+ # Offense count: 3
58
49
# Configuration parameters: CountKeywordArgs.
59
50
Metrics/ParameterLists :
60
51
MaxOptionalParameters : 5
61
52
Max : 10
62
53
63
- # Offense count: 28
54
+ # Offense count: 29
64
55
# Configuration parameters: AllowedMethods, AllowedPatterns.
65
56
Metrics/PerceivedComplexity :
66
57
Max : 37
@@ -71,13 +62,27 @@ Naming/AccessorMethodName:
71
62
- ' lib/puppet-strings/yard/handlers/puppet/base.rb'
72
63
- ' lib/puppet-strings/yard/handlers/ruby/type_base.rb'
73
64
65
+ # Offense count: 1
66
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
67
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
68
+ # 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
69
+ Naming/FileName :
70
+ Exclude :
71
+ - ' lib/puppet-strings.rb'
72
+
74
73
# Offense count: 1
75
74
# Configuration parameters: ForbiddenDelimiters.
76
75
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
77
76
Naming/HeredocDelimiterNaming :
78
77
Exclude :
79
78
- ' spec/acceptance/generate_markdown_spec.rb'
80
79
80
+ # Offense count: 24
81
+ # Configuration parameters: AllowedPatterns.
82
+ # SupportedStyles: snake_case, camelCase
83
+ Naming/MethodName :
84
+ EnforcedStyle : snake_case
85
+
81
86
# Offense count: 24
82
87
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
83
88
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
@@ -96,9 +101,9 @@ Performance/CollectionLiteralInLoop:
96
101
# Offense count: 1
97
102
RSpec/BeforeAfterAll :
98
103
Exclude :
99
- - ' spec/spec_helper.rb'
100
- - ' spec/rails_helper.rb'
101
- - ' spec/support/**/*.rb'
104
+ - ' **/ spec/spec_helper.rb'
105
+ - ' **/ spec/rails_helper.rb'
106
+ - ' **/ spec/support/**/*.rb'
102
107
- ' spec/acceptance/running_strings_generate_spec.rb'
103
108
104
109
# Offense count: 7
@@ -124,7 +129,7 @@ RSpec/DescribeClass:
124
129
- ' spec/acceptance/generate_markdown_spec.rb'
125
130
- ' spec/acceptance/running_strings_generate_spec.rb'
126
131
127
- # Offense count: 48
132
+ # Offense count: 51
128
133
# Configuration parameters: CountAsOne.
129
134
RSpec/ExampleLength :
130
135
Max : 66
@@ -134,12 +139,6 @@ RSpec/ExpectInHook:
134
139
Exclude :
135
140
- ' spec/unit/puppet-strings/json_spec.rb'
136
141
137
- # Offense count: 20
138
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
139
- # Include: **/*_spec*rb*, **/spec/**/*
140
- RSpec/FilePath :
141
- Enabled : false
142
-
143
142
# Offense count: 91
144
143
RSpec/MultipleExpectations :
145
144
Max : 64
@@ -154,24 +153,30 @@ RSpec/RepeatedExampleGroupDescription:
154
153
Exclude :
155
154
- ' spec/unit/puppet-strings/yard/handlers/ruby/function_handler_spec.rb'
156
155
156
+ # Offense count: 20
157
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
158
+ # Include: **/*_spec.rb
159
+ RSpec/SpecFilePathFormat :
160
+ Enabled : false
161
+
157
162
# Offense count: 1
158
163
Style/ClassVars :
159
164
Exclude :
160
165
- ' lib/puppet-strings/yard/templates/default/layout/html/setup.rb'
161
166
162
167
# Offense count: 3
168
+ # This cop supports unsafe autocorrection (--autocorrect-all).
163
169
Style/CombinableLoops :
164
170
Exclude :
165
171
- ' lib/puppet-strings/markdown.rb'
166
172
- ' lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb'
167
- - ' lib/puppet-strings/tasks/generate.rb'
168
173
169
174
# Offense count: 1
170
175
Style/MixinUsage :
171
176
Exclude :
172
177
- ' spec/acceptance/running_strings_generate_spec.rb'
173
178
174
- # Offense count: 17
179
+ # Offense count: 20
175
180
# Configuration parameters: AllowedMethods.
176
181
# AllowedMethods: respond_to_missing?
177
182
Style/OptionalBooleanParameter :
@@ -190,9 +195,9 @@ Style/OptionalBooleanParameter:
190
195
- ' lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb'
191
196
- ' lib/puppet-strings/yard/handlers/ruby/function_handler.rb'
192
197
193
- # Offense count: 139
198
+ # Offense count: 136
194
199
# This cop supports safe autocorrection (--autocorrect).
195
200
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
196
201
# URISchemes: http, https
197
202
Layout/LineLength :
198
- Max : 200
203
+ Max : 199
0 commit comments