1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2023-04-19 16:55:21 UTC using RuboCop version 1.48.1.
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
+
1
9
# Offense count: 15
2
10
# This cop supports unsafe autocorrection (--autocorrect-all).
3
11
Lint/BooleanSymbol :
@@ -13,16 +21,22 @@ Lint/ConstantDefinitionInBlock:
13
21
Exclude :
14
22
- ' spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
15
23
24
+ # Offense count: 1
25
+ # This cop supports safe autocorrection (--autocorrect).
26
+ Lint/RedundantCopEnableDirective :
27
+ Exclude :
28
+ - ' spec/unit/puppet/type/postgresql_psql_spec.rb'
29
+
16
30
# Offense count: 6
17
31
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
18
32
Metrics/AbcSize :
19
- Max : 49
33
+ Max : 48
20
34
21
- # Offense count: 8
35
+ # Offense count: 7
22
36
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
23
37
# AllowedMethods: refine
24
38
Metrics/BlockLength :
25
- Max : 121
39
+ Max : 119
26
40
27
41
# Offense count: 3
28
42
# Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -32,7 +46,7 @@ Metrics/CyclomaticComplexity:
32
46
# Offense count: 6
33
47
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
34
48
Metrics/MethodLength :
35
- Max : 31
49
+ Max : 29
36
50
37
51
# Offense count: 1
38
52
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
@@ -59,8 +73,7 @@ Naming/HeredocDelimiterNaming:
59
73
- ' spec/defines/server/default_privileges_spec.rb'
60
74
- ' spec/defines/server/grant_spec.rb'
61
75
62
-
63
- # Offense count: 104
76
+ # Offense count: 101
64
77
# Configuration parameters: Prefixes, AllowedPatterns.
65
78
# Prefixes: when, with, without
66
79
RSpec/ContextWording :
@@ -76,7 +89,6 @@ RSpec/DescribeClass:
76
89
RSpec/ExampleLength :
77
90
Max : 53
78
91
79
-
80
92
# Offense count: 3
81
93
RSpec/ExpectInHook :
82
94
Exclude :
@@ -96,10 +108,6 @@ RSpec/FilePath:
96
108
- ' spec/defines/server/instance/service.rb'
97
109
- ' spec/unit/puppet/type/postgresql_conn_validator.rb'
98
110
99
-
100
- RSpec/NamedSubject :
101
- Enabled : false
102
-
103
111
# Offense count: 2
104
112
RSpec/LeakyConstantDeclaration :
105
113
Exclude :
@@ -119,6 +127,12 @@ RSpec/MultipleExpectations:
119
127
RSpec/MultipleMemoizedHelpers :
120
128
Max : 18
121
129
130
+ # Offense count: 208
131
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
132
+ # SupportedStyles: always, named_only
133
+ RSpec/NamedSubject :
134
+ Enabled : false
135
+
122
136
# Offense count: 1
123
137
# Configuration parameters: AllowedGroups.
124
138
RSpec/NestedGroups :
@@ -160,6 +174,15 @@ Style/ClassAndModuleChildren:
160
174
Exclude :
161
175
- ' lib/puppet/util/postgresql_validator.rb'
162
176
177
+ # Offense count: 3
178
+ # This cop supports unsafe autocorrection (--autocorrect-all).
179
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
180
+ # SupportedStyles: predicate, comparison
181
+ Style/NumericPredicate :
182
+ Exclude :
183
+ - ' spec/**/*'
184
+ - ' lib/puppet/type/postgresql_psql.rb'
185
+
163
186
# Offense count: 2
164
187
# Configuration parameters: AllowedMethods.
165
188
# AllowedMethods: respond_to_missing?
0 commit comments