Skip to content

Commit

Permalink
(CONT-792) - Correct Style/SymbolProc
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent 6c89748 commit 45653ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,6 @@ Style/OptionalBooleanParameter:
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
- 'lib/puppet/type/postgresql_psql.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
# AllowedMethods: define_method
Style/SymbolProc:
Exclude:
- 'spec/spec_helper_acceptance_local.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class LitmusHelper

class String
def unindent
gsub(%r{^#{scan(%r{^\s*}).min_by { |l| l.length }}}, '')
gsub(%r{^#{scan(%r{^\s*}).min_by(&:length)}}, '')
end
end

Expand Down

0 comments on commit 45653ef

Please sign in to comment.