Skip to content

Commit 09f60c7

Browse files
authored
Merge pull request #2099 from Mth0158/factorybot-wrong-interpretation-of-attribute-as-example-declaration
Exclude all cops from inspecting factorybot files, except if explicit…
2 parents 02e78e2 + 0b86050 commit 09f60c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Add support for error matchers (`raise_exception` and `raise_error`) to `RSpec/Dialect`. ([@lovro-bikic])
88
- Don't register offenses for `RSpec/DescribedClass` within `Data.define` blocks. ([@lovro-bikic])
99
- Add autocorrection support for `RSpec/IteratedExpectation` for single expectations. ([@lovro-bikic])
10+
- Exclude all cops from inspecting factorybot files, except if explicitly included. ([@Mth0158])
1011

1112
## 3.6.0 (2025-04-18)
1213

@@ -1027,6 +1028,7 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
10271028
[@mlarraz]: https://github.com/mlarraz
10281029
[@mockdeep]: https://github.com/mockdeep
10291030
[@mothonmars]: https://github.com/MothOnMars
1031+
[@mth0158]: https://github.com/Mth0158
10301032
[@mvz]: https://github.com/mvz
10311033
[@naveg]: https://github.com/naveg
10321034
[@nc-holodakg]: https://github.com/nc-holodakg

config/default.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ RSpec:
66
Include:
77
- "**/*_spec.rb"
88
- "**/spec/**/*"
9+
Exclude:
10+
- "**/spec/factories.rb"
11+
- "**/spec/factories/**/*.rb"
12+
- "**/features/support/factories/**/*.rb"
913
Language:
1014
inherit_mode:
1115
merge:

0 commit comments

Comments
 (0)