How to configure rubocop-rspec require of rubocop dependency gem
See original GitHub issueYour environment
vscode-ruby
version: 0.18.0- Ruby version: 2.4.2
- VS Code version: Version 1.24.1 (1.24.1)
- Operating System: MacOS High Sierra
- Hardware (optional): Macbook 2k15 Pro
Expected behavior
checking rspec files properly
Actual behavior
rubocop is working, but without rspec rules from rubocop-rspec.
My setup in VSC:
"ruby.lint":{
"rubocop": {
"lint": true,
"rails": true,
"require": ["rubocop-rspec"] # this also did not help
}
}
Steps to reproduce the problem
add ‘require: rubocop-rspec’ on top .rubocop
file
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
rubocop-rspec | RubyGems.org | your community gem host
Code style checking for RSpec files. A plugin for the RuboCop code style enforcing & linting tool. ... rubocop ~> 1.33. Show all...
Read more >Gemspec :: RuboCop Docs
This setting tells RubyGems that MFA (Multi-Factor Authentication) is required for accounts to be able perform privileged operations, such as (see RubyGems' ...
Read more >Installing Rubocop As a Development Dependency - Mike Slinn
This option specifies Rubocop and other development tools as dependencies of the project, but not the gem. The project Gemfile would contain ...
Read more >Documentation for rubocop-rspec (1.5.0) - RubyDoc.info
Gem Version Dependency Status Build Status Coverage Status Code Climate ... Just install the rubocop-rspec gem ... rubocop --require rubocop-rspec ...
Read more >How to test ruby gem: step by step tutorial with rspec example
You will learn how to setup RSpec, create a Rails dummy application, ... rubocop dependencies. ... require 'bundler/setup' if File.exist?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yeah, now it works like a charm without
"require": ["rubocop-rspec"]
👍Can you try
0.22.0
and run RuboCop via the language server?