Skip to content

Commit

Permalink
Suppress RSpec/FilePath's offense
Browse files Browse the repository at this point in the history
This commit suppresses the following `RSpec/FilePath`'s offense:

```console
$ bundle exec rubocop
(snip)

Offenses:

spec/rubocop/ast/rubocop_compatibility_spec.rb:3:1: C: RSpec/FilePath: Spec path should end with rubocop/ast/rubo_cop_compatibility*_spec.rb.
RSpec.describe RuboCop::AST::RuboCopCompatibility do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

163 files inspected, 1 offense detected
```
  • Loading branch information
koic committed Oct 25, 2023
1 parent a54d905 commit a65a941
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Expand Up @@ -105,6 +105,11 @@ RSpec:
Expectations:
- expect_parsing

# Disable `RSpec/FilePath` cop because it has been deprecated:
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecfilepath
RSpec/FilePath:
Enabled: false

RSpec/PredicateMatcher:
Strict: false

Expand Down

0 comments on commit a65a941

Please sign in to comment.