Skip to content

Commit f898b41

Browse files
(maint) - Removed soon-to-be deprecated RSpec/FilePath cops
Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
1 parent 6c2a286 commit f898b41

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.rubocop.yml

Lines changed: 8 additions & 0 deletions
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

.rubocop_todo.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,6 @@ RSpec/DescribeClass:
131131
RSpec/ExampleLength:
132132
Max: 70
133133

134-
# Offense count: 7
135-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
136-
# Include: **/*_spec*rb*, **/spec/**/*
137-
RSpec/FilePath:
138-
Exclude:
139-
- 'spec/acceptance/dsc/basic.rb'
140-
- 'spec/acceptance/dsc/cim_instances.rb'
141-
- 'spec/acceptance/dsc/class.rb'
142-
- 'spec/acceptance/dsc/complex.rb'
143-
- 'spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb'
144-
- 'spec/unit/pwsh/version_spec.rb'
145-
- 'spec/unit/pwsh/windows_powershell_spec.rb'
146-
147134
# Offense count: 102
148135
# Configuration parameters: .
149136
# SupportedStyles: have_received, receive

0 commit comments

Comments
 (0)