Skip to content

Commit 5395638

Browse files
committed
Use RuboCop RSpec 2.24
This commit uses RuboCop RSpec 2.24 and suppress the following new offense: ```console $ bundle exec rubocop Inspecting 163 files (snip) Offenses: spec/rubocop/ast/rubocop_compatibility_spec.rb:1:1: C: RSpec/SpecFilePathFormat: Spec path should end with rubocop/ast/rubo_cop_compatibility*_spec.rb. # frozen_string_literal: true spec/rubocop/ast/rubocop_compatibility_spec.rb:3:54: W: [Correctable] Lint/RedundantCopDisableDirective: Unnecessary disabling of RSpec/FilePath. RSpec.describe RuboCop::AST::RuboCopCompatibility do # rubocop:disable RSpec/FilePath ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 163 files inspected, 2 offenses detected, 1 offense autocorrectable ``` https://github.com/rubocop/rubocop-rspec/releases/tag/v2.24.0
1 parent f678818 commit 5395638

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,9 @@ RSpec/NestedGroups:
120120
RSpec/MultipleMemoizedHelpers:
121121
Enabled: false
122122

123+
RSpec/SpecFilePathFormat:
124+
CustomTransform:
125+
RuboCopCompatibility: rubocop_compatibility
126+
123127
RSpec/StubbedMock:
124128
Enabled: false

spec/rubocop/ast/rubocop_compatibility_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
RSpec.describe RuboCop::AST::RuboCopCompatibility do # rubocop:disable RSpec/FilePath
3+
RSpec.describe RuboCop::AST::RuboCopCompatibility do
44
subject(:callback) { RuboCop::AST.rubocop_loaded }
55

66
before do

0 commit comments

Comments
 (0)