Skip to content

Commit

Permalink
Simply disable RSpec/SpecFilePathFormat
Browse files Browse the repository at this point in the history
The alternative would be to use the more advanced

```yaml
inherit_mode:
  merge:
    - Exclude
```
  • Loading branch information
dgutov committed Mar 25, 2024
1 parent 048c649 commit 03730f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
6 changes: 1 addition & 5 deletions .rubocop.yml
Expand Up @@ -66,11 +66,7 @@ RSpec/FilePath:
SpecSuffixOnly: true

RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- '**/spec/grape/api/*'
- '**/spec/integration/**/*'
- '**/spec/grape/validations/validators/*'
Enabled: false

RSpec/MultipleExpectations:
Max: 4
23 changes: 1 addition & 22 deletions .rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 5000`
# on 2024-03-25 01:13:48 UTC using RuboCop version 1.59.0.
# on 2024-03-25 01:40:39 UTC using RuboCop version 1.59.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -435,27 +435,6 @@ RSpec/ScatteredSetup:
- 'spec/grape/util/inheritable_setting_spec.rb'
- 'spec/grape/validations_spec.rb'

# Offense count: 11
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- '**/spec/grape/api/*'
- '**/spec/integration/**/*'
- '**/spec/grape/validations/validators/*'
- 'spec/grape/dsl/inside_route_spec.rb'
- 'spec/grape/endpoint/declared_spec.rb'
- 'spec/grape/exceptions/body_parse_errors_spec.rb'
- 'spec/grape/extensions/param_builders/hash_spec.rb'
- 'spec/grape/extensions/param_builders/hash_with_indifferent_access_spec.rb'
- 'spec/grape/extensions/param_builders/hashie/mash_spec.rb'
- 'spec/grape/integration/global_namespace_function_spec.rb'
- 'spec/grape/integration/rack_sendfile_spec.rb'
- 'spec/grape/loading_spec.rb'
- 'spec/grape/middleware/exception_spec.rb'
- 'spec/grape/validations/attributes_doc_spec.rb'

# Offense count: 9
RSpec/StubbedMock:
Exclude:
Expand Down

0 comments on commit 03730f1

Please sign in to comment.