Skip to content

Commit 45653ef

Browse files
author
jordanbreen28
committed
(CONT-792) - Correct Style/SymbolProc
1 parent 6c89748 commit 45653ef

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,6 @@ Style/OptionalBooleanParameter:
168168
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
169169
- 'lib/puppet/type/postgresql_psql.rb'
170170

171-
# Offense count: 1
172-
# This cop supports unsafe autocorrection (--autocorrect-all).
173-
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
174-
# AllowedMethods: define_method
175-
Style/SymbolProc:
176-
Exclude:
177-
- 'spec/spec_helper_acceptance_local.rb'
178-
179171
# Offense count: 2
180172
# This cop supports safe autocorrection (--autocorrect).
181173
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.

spec/spec_helper_acceptance_local.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class LitmusHelper
99

1010
class String
1111
def unindent
12-
gsub(%r{^#{scan(%r{^\s*}).min_by { |l| l.length }}}, '')
12+
gsub(%r{^#{scan(%r{^\s*}).min_by(&:length)}}, '')
1313
end
1414
end
1515

0 commit comments

Comments
 (0)