question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to configure rubocop-rspec require of rubocop dependency gem

See original GitHub issue

Your 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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
choosencommented, Feb 24, 2019

yeah, now it works like a charm without "require": ["rubocop-rspec"] 👍

0reactions
wingrunr21commented, Feb 20, 2019

Can you try 0.22.0 and run RuboCop via the language server?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found