|
1 | 1 | ---
|
2 |
| -AllCops: |
3 |
| - RSpec: |
4 |
| - Patterns: |
5 |
| - - _spec.rb |
6 |
| - - "(?:^|/)spec/" |
7 |
| - RSpec/FactoryBot: |
8 |
| - Patterns: |
9 |
| - - spec/factories.rb |
10 |
| - - spec/factories/**/*.rb |
11 |
| - - features/support/factories/**/*.rb |
| 2 | +RSpec: |
| 3 | + Include: |
| 4 | + - "**/*_spec.rb" |
| 5 | + - "**/spec/**/*" |
| 6 | + Language: |
| 7 | + ExampleGroups: |
| 8 | + Regular: |
| 9 | + - describe |
| 10 | + - context |
| 11 | + - feature |
| 12 | + - example_group |
| 13 | + Skipped: |
| 14 | + - xdescribe |
| 15 | + - xcontext |
| 16 | + - xfeature |
| 17 | + Focused: |
| 18 | + - fdescribe |
| 19 | + - fcontext |
| 20 | + - ffeature |
| 21 | + Examples: |
| 22 | + Regular: |
| 23 | + - it |
| 24 | + - specify |
| 25 | + - example |
| 26 | + - scenario |
| 27 | + - its |
| 28 | + Focused: |
| 29 | + - fit |
| 30 | + - fspecify |
| 31 | + - fexample |
| 32 | + - fscenario |
| 33 | + - focus |
| 34 | + Skipped: |
| 35 | + - xit |
| 36 | + - xspecify |
| 37 | + - xexample |
| 38 | + - xscenario |
| 39 | + - skip |
| 40 | + Pending: |
| 41 | + - pending |
| 42 | + Expectations: |
| 43 | + - expect |
| 44 | + - is_expected |
| 45 | + - expect_any_instance_of |
| 46 | + Helpers: |
| 47 | + - let |
| 48 | + - let! |
| 49 | + Hooks: |
| 50 | + - prepend_before |
| 51 | + - before |
| 52 | + - append_before |
| 53 | + - around |
| 54 | + - prepend_after |
| 55 | + - after |
| 56 | + - append_after |
| 57 | + HookScopes: |
| 58 | + - each |
| 59 | + - example |
| 60 | + - context |
| 61 | + - all |
| 62 | + - suite |
| 63 | + Includes: |
| 64 | + Examples: |
| 65 | + - it_behaves_like |
| 66 | + - it_should_behave_like |
| 67 | + - include_examples |
| 68 | + Context: |
| 69 | + - include_context |
| 70 | + Runners: |
| 71 | + - to |
| 72 | + - to_not |
| 73 | + - not_to |
| 74 | + SharedGroups: |
| 75 | + Examples: |
| 76 | + - shared_examples |
| 77 | + - shared_examples_for |
| 78 | + Context: |
| 79 | + - shared_context |
| 80 | + Subjects: |
| 81 | + - subject |
| 82 | + - subject! |
12 | 83 |
|
13 | 84 | RSpec/AlignLeftLetBrace:
|
14 | 85 | Description: Checks that left braces for adjacent single line lets are aligned.
|
@@ -136,8 +207,8 @@ RSpec/Dialect:
|
136 | 207 | RSpec/EmptyExampleGroup:
|
137 | 208 | Description: Checks if an example group does not include any tests.
|
138 | 209 | Enabled: true
|
139 |
| - CustomIncludeMethods: [] |
140 | 210 | VersionAdded: '1.7'
|
| 211 | + VersionChanged: '2.0' |
141 | 212 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup
|
142 | 213 |
|
143 | 214 | RSpec/EmptyHook:
|
@@ -241,6 +312,9 @@ RSpec/ExpectOutput:
|
241 | 312 | RSpec/FilePath:
|
242 | 313 | Description: Checks that spec file paths are consistent and well-formed.
|
243 | 314 | Enabled: true
|
| 315 | + Include: |
| 316 | + - "**/*_spec*rb*" |
| 317 | + - "**/spec/**/*" |
244 | 318 | CustomTransform:
|
245 | 319 | RuboCop: rubocop
|
246 | 320 | RSpec: rspec
|
@@ -315,12 +389,6 @@ RSpec/InstanceVariable:
|
315 | 389 | VersionChanged: '1.7'
|
316 | 390 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
|
317 | 391 |
|
318 |
| -RSpec/InvalidPredicateMatcher: |
319 |
| - Description: Checks invalid usage for predicate matcher. |
320 |
| - Enabled: true |
321 |
| - VersionAdded: '1.16' |
322 |
| - StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InvalidPredicateMatcher |
323 |
| - |
324 | 392 | RSpec/ItBehavesLike:
|
325 | 393 | Description: Checks that only one `it_behaves_like` style is used.
|
326 | 394 | Enabled: true
|
@@ -561,7 +629,7 @@ RSpec/SingleArgumentMessageChain:
|
561 | 629 |
|
562 | 630 | RSpec/StubbedMock:
|
563 | 631 | Description: Checks that message expectations do not have a configured response.
|
564 |
| - Enabled: pending |
| 632 | + Enabled: true |
565 | 633 | VersionAdded: '1.44'
|
566 | 634 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/StubbedMock
|
567 | 635 |
|
@@ -620,54 +688,74 @@ RSpec/Yield:
|
620 | 688 | VersionAdded: '1.32'
|
621 | 689 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Yield
|
622 | 690 |
|
623 |
| -Capybara/CurrentPathExpectation: |
| 691 | +RSpec/Capybara/CurrentPathExpectation: |
624 | 692 | Description: Checks that no expectations are set on Capybara's `current_path`.
|
625 | 693 | Enabled: true
|
626 | 694 | VersionAdded: '1.18'
|
| 695 | + VersionChanged: '2.0' |
627 | 696 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation
|
628 | 697 |
|
629 |
| -Capybara/FeatureMethods: |
| 698 | +RSpec/Capybara/FeatureMethods: |
630 | 699 | Description: Checks for consistent method usage in feature specs.
|
631 | 700 | Enabled: true
|
632 | 701 | EnabledMethods: []
|
633 | 702 | VersionAdded: '1.17'
|
634 |
| - VersionChanged: '1.25' |
| 703 | + VersionChanged: '2.0' |
635 | 704 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/FeatureMethods
|
636 | 705 |
|
637 |
| -Capybara/VisibilityMatcher: |
| 706 | +RSpec/Capybara/VisibilityMatcher: |
638 | 707 | Description: Checks for boolean visibility in capybara finders.
|
639 | 708 | Enabled: true
|
640 | 709 | VersionAdded: '1.39'
|
| 710 | + VersionChanged: '2.0' |
641 | 711 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/VisibilityMatcher
|
642 | 712 |
|
643 |
| -FactoryBot/AttributeDefinedStatically: |
| 713 | +RSpec/FactoryBot/AttributeDefinedStatically: |
644 | 714 | Description: Always declare attribute values as blocks.
|
645 | 715 | Enabled: true
|
| 716 | + Include: |
| 717 | + - spec/factories.rb |
| 718 | + - spec/factories/**/*.rb |
| 719 | + - features/support/factories/**/*.rb |
646 | 720 | VersionAdded: '1.28'
|
| 721 | + VersionChanged: '2.0' |
647 | 722 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically
|
648 | 723 |
|
649 |
| -FactoryBot/CreateList: |
| 724 | +RSpec/FactoryBot/CreateList: |
650 | 725 | Description: Checks for create_list usage.
|
651 | 726 | Enabled: true
|
| 727 | + Include: |
| 728 | + - "**/*_spec.rb" |
| 729 | + - "**/spec/**/*" |
| 730 | + - spec/factories.rb |
| 731 | + - spec/factories/**/*.rb |
| 732 | + - features/support/factories/**/*.rb |
652 | 733 | EnforcedStyle: create_list
|
653 | 734 | SupportedStyles:
|
654 | 735 | - create_list
|
655 | 736 | - n_times
|
656 | 737 | VersionAdded: '1.25'
|
| 738 | + VersionChanged: '2.0' |
657 | 739 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/CreateList
|
658 | 740 |
|
659 |
| -FactoryBot/FactoryClassName: |
| 741 | +RSpec/FactoryBot/FactoryClassName: |
660 | 742 | Description: Use string value when setting the class attribute explicitly.
|
661 | 743 | Enabled: true
|
| 744 | + Include: |
| 745 | + - spec/factories.rb |
| 746 | + - spec/factories/**/*.rb |
| 747 | + - features/support/factories/**/*.rb |
662 | 748 | VersionAdded: '1.37'
|
| 749 | + VersionChanged: '2.0' |
663 | 750 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName
|
664 | 751 |
|
665 |
| -Rails/HttpStatus: |
| 752 | +RSpec/Rails/HttpStatus: |
666 | 753 | Description: Enforces use of symbolic or numeric value to describe HTTP status.
|
667 | 754 | Enabled: true
|
668 | 755 | EnforcedStyle: symbolic
|
669 | 756 | SupportedStyles:
|
670 | 757 | - numeric
|
671 | 758 | - symbolic
|
672 | 759 | VersionAdded: '1.23'
|
| 760 | + VersionChanged: '2.0' |
673 | 761 | StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus
|
0 commit comments