Skip to content

Commit

Permalink
(CONT-792) - Correct Style/CommentedKeyword
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbreen28 committed Apr 19, 2023
1 parent 858bb6f commit d13c35f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ Style/ClassAndModuleChildren:
Exclude:
- 'lib/puppet/util/postgresql_validator.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
Exclude:
- 'spec/acceptance/server/reassign_owned_by_spec.rb'
# # Offense count: 1
# # This cop supports unsafe autocorrection (--autocorrect-all).
# Style/CommentedKeyword:
# Exclude:
# - 'spec/acceptance/server/reassign_owned_by_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/server/reassign_owned_by_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class { 'postgresql::server': }
end
end
end
end # it should reassign all objects
end
end
end
#####################
Expand Down
1 change: 0 additions & 1 deletion spec/unit/puppet/type/postgresql_psql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
end
end

# rubocop:disable RSpec/NamedSubject
# rubocop:disable RSpec/SubjectStub
describe '#command' do
let(:attributes) { { command: 'SELECT stuff' } }
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/type/postgresql_replication_slot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
end

it 'has a name parameter' do
expect(subject[:name]).to eq 'standby' # rubocop:disable RSpec/NamedSubject
expect(subject[:name]).to eq 'standby'
end
end

0 comments on commit d13c35f

Please sign in to comment.