rubocop-rspec 2.4.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/README.md +2 -4
- data/config/default.yml +187 -92
- data/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb +7 -7
- data/lib/rubocop/cop/rspec/capybara/feature_methods.rb +2 -23
- data/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb +3 -2
- data/lib/rubocop/cop/rspec/empty_hook.rb +4 -1
- data/lib/rubocop/cop/rspec/empty_line_after_subject.rb +3 -9
- data/lib/rubocop/cop/rspec/example_wording.rb +3 -0
- data/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb +100 -0
- data/lib/rubocop/cop/rspec/factory_bot/create_list.rb +4 -3
- data/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb +107 -0
- data/lib/rubocop/cop/rspec/hook_argument.rb +1 -1
- data/lib/rubocop/cop/rspec/iterated_expectation.rb +2 -0
- data/lib/rubocop/cop/rspec/leading_subject.rb +3 -7
- data/lib/rubocop/cop/rspec/mixin/inside_example_group.rb +29 -0
- data/lib/rubocop/cop/rspec/nested_groups.rb +1 -1
- data/lib/rubocop/cop/rspec/subject_declaration.rb +47 -0
- data/lib/rubocop/cop/rspec/subject_stub.rb +44 -18
- data/lib/rubocop/cop/rspec/variable_definition.rb +19 -2
- data/lib/rubocop/cop/rspec/yield.rb +1 -1
- data/lib/rubocop/cop/rspec_cops.rb +3 -0
- data/lib/rubocop/rspec/align_let_brace.rb +2 -1
- data/lib/rubocop/rspec/config_formatter.rb +6 -4
- data/lib/rubocop/rspec/factory_bot/language.rb +17 -0
- data/lib/rubocop/rspec/version.rb +1 -1
- data/lib/rubocop-rspec.rb +5 -2
- metadata +16 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4786aaf8f829745dafce927499fd98671a0b8ab08a61a9c99eafc26fb7235926
|
4
|
+
data.tar.gz: 38e23b1194fb915f42f4399fe6be1b6c950de10d367300a01226549e15747f93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39bb13d4cfe09307955f392935c626fb8b920e2b38a33323464e15fb9a7248c88db27259cab8c118df4ebb5888c11973e04e2e5f3ce58e64e1f18486801ac3c7
|
7
|
+
data.tar.gz: 51fa7212f5b0576b0fbfcf88c57cff79612934695f8f8f1b6c3106006b5e6dd1eff08c06cfe60fcd8a994e3eccd51810c61b208e398b708090f3e257d0bed3e8
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,39 @@
|
|
2
2
|
|
3
3
|
## Master (Unreleased)
|
4
4
|
|
5
|
+
## 2.8.0 (2022-01-24)
|
6
|
+
|
7
|
+
* Fix `RSpec/FactoryBot/SyntaxMethods` and `RSpec/Capybara/FeatureMethods` to inspect shared groups. ([@pirj][])
|
8
|
+
* Fix `RSpec/LeadingSubject` failure in non-spec code. ([@pirj][])
|
9
|
+
* Add bad example to `RSpec/SubjectStub` cop. ([@oshiro3][])
|
10
|
+
* Replace non-styleguide cops `StyleGuide` attribute with `Reference`. ([@pirj][])
|
11
|
+
* Fix `RSpec/SubjectStub` to disallow stubbing of subjects defined in parent example groups. ([@pirj][])
|
12
|
+
|
13
|
+
## 2.7.0 (2021-12-26)
|
14
|
+
|
15
|
+
* Add new `RSpec/FactoryBot/SyntaxMethods` cop. ([@leoarnold][])
|
16
|
+
* Exclude `task` type specs from `RSpec/DescribeClass` cop. ([@harry-graham][])
|
17
|
+
|
18
|
+
## 2.6.0 (2021-11-08)
|
19
|
+
|
20
|
+
* Fix merging RSpec DSL configuration from third-party gems. ([@pirj][])
|
21
|
+
* Fix `RSpec/ExcessiveDocstringSpacing` false positive for multi-line indented strings. ([@G-Rath][])
|
22
|
+
* Fix `Include` configuration for sub-departments. ([@pirj][])
|
23
|
+
* Ignore heredocs in `RSpec/ExcessiveDocstringSpacing`. ([@G-Rath][])
|
24
|
+
* Stop `RSpec/ExampleWording` from trying to correct heredocs. ([@G-Rath][])
|
25
|
+
* Add autocorrect support for `RSpec/VariableDefinition`. ([@r7kamura][])
|
26
|
+
|
27
|
+
## 2.5.0 (2021-09-21)
|
28
|
+
|
29
|
+
* Declare autocorrect as unsafe for `ExpectChange`. ([@francois-ferrandis][])
|
30
|
+
* Fix each example for `RSpec/HookArgument`. ([@lokhi][])
|
31
|
+
* Exclude unrelated Rails directories from `RSpec/DescribeClass`. ([@MothOnMars][])
|
32
|
+
* Add `RSpec/ExcessiveDocstringSpacing` cop. ([@G-Rath][])
|
33
|
+
* Add `RSpec/SubjectDeclaration` cop. ([@dswij][])
|
34
|
+
* Fix excessive whitespace removal in `RSpec/EmptyHook` autocorrection. ([@pirj][])
|
35
|
+
* Bump RuboCop requirement to v1.19.0. ([@pirj][])
|
36
|
+
* Fix false positive in `RSpec/IteratedExpectation` when there is single, non-expectation statement in the block body. ([@Darhazer][])
|
37
|
+
|
5
38
|
## 2.4.0 (2021-06-09)
|
6
39
|
|
7
40
|
* Update `RSpec/FilePath` to check suffix when given a non-constant top-level node (e.g. features). ([@topalovic][])
|
@@ -625,3 +658,12 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
|
|
625
658
|
[@rrosenblum]: https://github.com/rrosenblum
|
626
659
|
[@paydaylight]: https://github.com/paydaylight
|
627
660
|
[@topalovic]: https://github.com/topalovic
|
661
|
+
[@lokhi]: https://github.com/lokhi
|
662
|
+
[@MothOnMars]: https://github.com/MothOnMars
|
663
|
+
[@G-Rath]: https://github.com/G-Rath
|
664
|
+
[@dswij]: https://github.com/dswij
|
665
|
+
[@francois-ferrandis]: https://github.com/francois-ferrandis
|
666
|
+
[@r7kamura]: https://github.com/r7kamura
|
667
|
+
[@leoarnold]: https://github.com/leoarnold
|
668
|
+
[@harry-graham]: https://github.com/harry-graham
|
669
|
+
[@oshiro3]: https://github.com/oshiro3
|
data/README.md
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://gitter.im/rubocop-rspec/Lobby)
|
4
4
|
[](https://rubygems.org/gems/rubocop-rspec)
|
5
|
-
|
6
|
-
[](https://codeclimate.com/github/rubocop-hq/rubocop-rspec/test_coverage)
|
7
|
-
[](https://codeclimate.com/github/rubocop-hq/rubocop-rspec/maintainability)
|
5
|
+

|
8
6
|
|
9
7
|
RSpec-specific analysis for your projects, as an extension to
|
10
8
|
[RuboCop](https://github.com/rubocop/rubocop).
|
@@ -67,7 +65,7 @@ end
|
|
67
65
|
|
68
66
|
### Code Climate
|
69
67
|
|
70
|
-
rubocop-rspec is available on Code Climate as part of the rubocop engine. [Learn More](https://codeclimate.com/changelog/55a433bbe30ba00852000fac).
|
68
|
+
rubocop-rspec is available on Code Climate as part of the rubocop engine. [Learn More](https://marketing.codeclimate.com/changelog/55a433bbe30ba00852000fac/).
|
71
69
|
|
72
70
|
## Documentation
|
73
71
|
|