Skip to content

Commit a95ae94

Browse files
Merge pull request #369 from puppetlabs/maint_remove_deprecated_rubocops
(maint) - Removed soon-to-be deprecated RSpec/FilePath cops
2 parents 4c7e9e5 + 650520c commit a95ae94

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: .rubocop.yml

+8
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ AllCops:
1717
# Disabled
1818
Style/ClassAndModuleChildren:
1919
Enabled: false
20+
21+
####################################################
22+
# Cops below here due for deprecation
23+
####################################################
24+
# ``Rspec/FilePath`` is going to be deprecated in the next major release of rubocop >=3.0.0: see <https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath>
25+
# As the new cops are already present, e.g., Rspec/SpecFilePathPathFormat, then disabling this in preparation
26+
RSpec/FilePath:
27+
Enabled: false

Diff for: .rubocop_todo.yml

-6
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,6 @@ RSpec/ExpectInHook:
133133
Exclude:
134134
- 'spec/unit/puppet-strings/json_spec.rb'
135135

136-
# Offense count: 20
137-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
138-
# Include: **/*_spec*rb*, **/spec/**/*
139-
RSpec/FilePath:
140-
Enabled: false
141-
142136
# Offense count: 91
143137
RSpec/MultipleExpectations:
144138
Max: 64

0 commit comments

Comments
 (0)