From f898b41fa2bf9c21751e0e5c6f829dbce984de94 Mon Sep 17 00:00:00 2001 From: Gavin Didrichsen Date: Thu, 12 Oct 2023 19:11:25 +0100 Subject: [PATCH] (maint) - Removed soon-to-be deprecated RSpec/FilePath cops Signed-off-by: Gavin Didrichsen --- .rubocop.yml | 8 ++++++++ .rubocop_todo.yml | 13 ------------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 2ccc89f3..06ba896a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,3 +17,11 @@ AllCops: # Disabled Style/ClassAndModuleChildren: Enabled: false + +#################################################### +# Cops below here due for deprecation +#################################################### +# ``Rspec/FilePath`` is going to be deprecated in the next major release of rubocop >=3.0.0: see +# As the new cops are already present, e.g., Rspec/SpecFilePathPathFormat, then disabling this in preparation +RSpec/FilePath: + Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index fbaa0cd2..96b00c4e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -131,19 +131,6 @@ RSpec/DescribeClass: RSpec/ExampleLength: Max: 70 -# Offense count: 7 -# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. -# Include: **/*_spec*rb*, **/spec/**/* -RSpec/FilePath: - Exclude: - - 'spec/acceptance/dsc/basic.rb' - - 'spec/acceptance/dsc/cim_instances.rb' - - 'spec/acceptance/dsc/class.rb' - - 'spec/acceptance/dsc/complex.rb' - - 'spec/unit/puppet/provider/dsc_base_provider/dsc_base_provider_spec.rb' - - 'spec/unit/pwsh/version_spec.rb' - - 'spec/unit/pwsh/windows_powershell_spec.rb' - # Offense count: 102 # Configuration parameters: . # SupportedStyles: have_received, receive