File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -160,15 +160,6 @@ Style/ClassAndModuleChildren:
160
160
Exclude :
161
161
- ' lib/puppet/util/postgresql_validator.rb'
162
162
163
- # Offense count: 5
164
- # This cop supports unsafe autocorrection (--autocorrect-all).
165
- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
166
- # SupportedStyles: predicate, comparison
167
- Style/NumericPredicate :
168
- Exclude :
169
- - ' spec/**/*'
170
- - ' lib/puppet/type/postgresql_psql.rb'
171
-
172
163
# Offense count: 2
173
164
# Configuration parameters: AllowedMethods.
174
165
# AllowedMethods: respond_to_missing?
@@ -177,12 +168,6 @@ Style/OptionalBooleanParameter:
177
168
- ' lib/puppet/functions/postgresql/postgresql_password.rb'
178
169
- ' lib/puppet/type/postgresql_psql.rb'
179
170
180
- # Offense count: 16
181
- # This cop supports safe autocorrection (--autocorrect).
182
- Style/RedundantRegexpCharacterClass :
183
- Exclude :
184
- - ' spec/defines/server/recovery_spec.rb'
185
-
186
171
# Offense count: 7
187
172
# This cop supports safe autocorrection (--autocorrect).
188
173
Style/RedundantRegexpEscape :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class { 'postgresql::server': }
30
30
31
31
it do
32
32
expect ( subject ) . to contain_concat__fragment ( 'test-recovery.conf' )
33
- . with ( content : %r{restore_command = 'restore_command'[ \n ] +recovery_target_timeline = 'recovery_target_timeline'} )
33
+ . with ( content : %r{restore_command = 'restore_command'\n +recovery_target_timeline = 'recovery_target_timeline'} )
34
34
end
35
35
end
36
36
@@ -103,7 +103,7 @@ class { 'postgresql::server': }
103
103
104
104
it do
105
105
expect ( subject ) . to contain_concat__fragment ( 'test-recovery.conf' )
106
- . with ( content : %r{restore_command = 'restore_command'[ \n ] +archive_cleanup_command = 'archive_cleanup_command'[ \n ] +recovery_end_command = 'recovery_end_command'[ \n ] +recovery_target_name = 'recovery_target_name'[ \n ] +recovery_target_time = 'recovery_target_time'[ \n ] +recovery_target_xid = 'recovery_target_xid'[ \n ] +recovery_target_inclusive = true[ \n ] +recovery_target = 'recovery_target'[ \n ] +recovery_target_timeline = 'recovery_target_timeline'[ \n ] +pause_at_recovery_target = true[ \n ] +standby_mode = on[ \n ] +primary_conninfo = 'primary_conninfo'[ \n ] +primary_slot_name = 'primary_slot_name'[ \n ] +trigger_file = 'trigger_file'[ \n ] +recovery_min_apply_delay = 0[ \n ] +} ) # rubocop:disable Layout/LineLength
106
+ . with ( content : %r{restore_command = 'restore_command'\n +archive_cleanup_command = 'archive_cleanup_command'\n +recovery_end_command = 'recovery_end_command'\n +recovery_target_name = 'recovery_target_name'\n +recovery_target_time = 'recovery_target_time'\n +recovery_target_xid = 'recovery_target_xid'\n +recovery_target_inclusive = true\n +recovery_target = 'recovery_target'\n +recovery_target_timeline = 'recovery_target_timeline'\n +pause_at_recovery_target = true\n +standby_mode = on\n +primary_conninfo = 'primary_conninfo'\n +primary_slot_name = 'primary_slot_name'\n +trigger_file = 'trigger_file'\n +recovery_min_apply_delay = 0\n +} ) # rubocop:disable Layout/LineLength
107
107
end
108
108
end
109
109
end
You can’t perform that action at this time.
0 commit comments