misogi / vscode-ruby-rubocop

Rubocop extension for Visual Studio Code
https://marketplace.visualstudio.com/items/misogi.ruby-rubocop
MIT License
137 stars 68 forks source link

RuboCop-RSpec cops not being recognized (and linting stop working) #79

Open matoelorriaga opened 6 years ago

matoelorriaga commented 6 years ago

I have some RuboCop-RSpec cops configured in my .rubocop.yml file, and that is breaking the plugin. Let me know if you need more info.

/my/projecy/path.rubocop.yml: RSpec/FilePath has the wrong namespace - should be Rails
Warning: unrecognized cop Capybara/CurrentPathExpectation found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop Capybara/FeatureMethods found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop FactoryBot/DynamicAttributeDefinedStatically found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/AlignLeftLetBrace found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/AlignRightLetBrace found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/AnyInstance found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/AroundBlock found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/BeEql found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/BeforeAfterAll found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ContextWording found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/DescribeClass found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/DescribeMethod found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/DescribeSymbol found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/DescribedClass found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/EmptyExampleGroup found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/EmptyLineAfterFinalLet found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/EmptyLineAfterSubject found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ExampleLength found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ExampleWording found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ExpectActual found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ExpectInHook found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ExpectOutput found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/Focus found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/HookArgument found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ImplicitExpect found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/InstanceSpy found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/InstanceVariable found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/InvalidPredicateMatcher found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ItBehavesLike found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/IteratedExpectation found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/LeadingSubject found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/LetBeforeExamples found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/LetSetup found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/MessageChain found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/MessageExpectation found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/MessageSpies found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/MultipleDescribes found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/MultipleExpectations found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/MultipleSubjects found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/NamedSubject found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/NestedGroups found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/NotToNot found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/OverwritingSetup found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/PredicateMatcher found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/RepeatedDescription found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/RepeatedExample found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ReturnFromStub found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ScatteredLet found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/ScatteredSetup found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/SharedContext found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/SingleArgumentMessageChain found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/SubjectStub found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/VerifiedDoubles found in /my/projecy/path.rubocop.yml
Warning: unrecognized cop RSpec/VoidExpect found in /my/projecy/path.rubocop.yml
tiendo1011 commented 6 years ago

Try to add this at the beginning of your .rubocop.yml: require: rubocop-rspec

ctsstc commented 5 years ago

This can probably be closed now @matoelorriaga

brainmaniac commented 5 years ago

I still have no solution to this problem. I have tried the above without success.

mikelarkin commented 2 years ago

Have you tried doing as it requests and change to Rails/FilePath?