Skip to content

Commit

Permalink
(CONT-792) - Correct Lint/RedundantCopEnableDirective
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent c3632a9 commit 27660b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ Lint/ConstantDefinitionInBlock:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantCopEnableDirective:
Exclude:
- 'lib/puppet/type/postgresql_psql.rb'

# Offense count: 6
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Expand Down
1 change: 0 additions & 1 deletion lib/puppet/type/postgresql_psql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def sync
def matches(value)
output, status = provider.run_unless_sql_command(value)
fail("Error evaluating 'unless' clause, returned #{status}: '#{output}'") unless status.zero? # rubocop:disable Style/SignalException
# rubocop:enable Style/NumericPredicate

result_count = output.strip.to_i
debug("Found #{result_count} row(s) executing 'unless' clause")
Expand Down

0 comments on commit 27660b6

Please sign in to comment.