Skip to content

Commit c45b84c

Browse files
authored
(PE-36462) Rubocop updates (#379)
Updated Rubocop config. Generated TODO and fixed minor issue.
1 parent cc6f153 commit c45b84c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.rubocop.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ require:
33
- rubocop-performance
44
- rubocop-rspec
55
AllCops:
6+
Newcops: enable
7+
ExtraDetails: true
8+
DisplayStyleGuide: true
69
DisplayCopNames: true
7-
TargetRubyVersion: '2.6'
10+
TargetRubyVersion: '2.7'
811
Include:
912
- "**/*.rb"
1013
Exclude:

.rubocop_todo.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2023-09-05 10:29:15 UTC using RuboCop version 1.48.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.

spec/functions/fail_on_transport_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Function testing depends on rspec-puppet magic in the opening describe
2626
# statement. Re-defining the subject just to give it a different name
2727
# would require duplicating rspec-puppet code, and that's a far worse sin.
28-
# rubocop:disable Rspec/NamedSubject
28+
# rubocop:disable RSpec/NamedSubject
2929
it 'raises an error when nodes use the specified transport' do
3030
expect { subject.execute(nodes, 'pcp') }.to raise_error(Puppet::PreformattedError, %r{target\.example uses pcp transport: This is not supported\.})
3131
end
@@ -37,5 +37,5 @@
3737
it 'raises no error when nodes do not use the specified transport' do
3838
expect { subject.execute(nodes, 'ssh') }.not_to raise_error
3939
end
40-
# rubocop:enable Rspec/NamedSubject
40+
# rubocop:enable RSpec/NamedSubject
4141
end

0 commit comments

Comments
 (0)