-
Notifications
You must be signed in to change notification settings - Fork 614
/
Copy path.rubocop_todo.yml
169 lines (142 loc) · 4.86 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Offense count: 15
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/BooleanSymbol:
Exclude:
- 'lib/puppet/provider/postgresql_psql/ruby.rb'
- 'lib/puppet/type/postgresql_psql.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 2
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
# Offense count: 6
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 49
# Offense count: 8
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 121
# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 9
# Offense count: 6
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 31
# Offense count: 1
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
Max: 6
# Offense count: 4
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 11
# Offense count: 24
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'lib/puppet/type/postgresql_conn_validator.rb'
- 'lib/puppet/type/postgresql_replication_slot.rb'
- 'spec/acceptance/server/grant_spec.rb'
- 'spec/acceptance/server/recovery_spec.rb'
- 'spec/classes/server/config_spec.rb'
- 'spec/classes/server/initdb_spec.rb'
- 'spec/classes/server_spec.rb'
- 'spec/defines/server/default_privileges_spec.rb'
- 'spec/defines/server/grant_spec.rb'
# Offense count: 104
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 73
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Enabled: false
# Offense count: 42
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 53
# Offense count: 3
RSpec/ExpectInHook:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 7
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Exclude:
- 'spec/defines/server/instance/config.rb'
- 'spec/defines/server/instance/initdb.rb'
- 'spec/defines/server/instance/late_initdb.rb'
- 'spec/defines/server/instance/passwd.rb'
- 'spec/defines/server/instance/reload.rb'
- 'spec/defines/server/instance/service.rb'
- 'spec/unit/puppet/type/postgresql_conn_validator.rb'
RSpec/NamedSubject:
Enabled: false
# Offense count: 2
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
# Offense count: 63
# This cop supports safe autocorrection (--autocorrect).
RSpec/LetBeforeExamples:
Enabled: false
# Offense count: 45
RSpec/MultipleExpectations:
Max: 6
# Offense count: 19
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 18
# Offense count: 1
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 4
# Offense count: 20
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/acceptance/alternative_port_spec.rb'
- 'spec/acceptance/default_parameters_spec.rb'
- 'spec/acceptance/postgresql_conn_validator_spec.rb'
- 'spec/acceptance/postgresql_psql_spec.rb'
- 'spec/acceptance/server/grant_spec.rb'
- 'spec/acceptance/server/recovery_spec.rb'
- 'spec/acceptance/sql_task_spec.rb'
- 'spec/acceptance/z_alternative_pgdata_spec.rb'
- 'spec/unit/puppet/provider/postgresql_conn_validator/ruby_spec.rb'
# Offense count: 17
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/acceptance/server/grant_spec.rb'
- 'spec/defines/server/extension_spec.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 15
RSpec/StubbedMock:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/puppet/util/postgresql_validator.rb'
# Offense count: 2
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
- 'lib/puppet/type/postgresql_psql.rb'