Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Exclude rule for spec is ignored #49

Open
1 task done
alexander-myltsev opened this issue Feb 26, 2017 · 2 comments
Open
1 task done

Exclude rule for spec is ignored #49

alexander-myltsev opened this issue Feb 26, 2017 · 2 comments

Comments

@alexander-myltsev
Copy link

alexander-myltsev commented Feb 26, 2017

Expected Behavior

I have .rubocop.yml config rule as follows:

AllCops:
  Exclude:
    - spec/**/*

I expect RubyMine won't highlight Rubocop errors for specs.

Actual Behavior

But it does highlight them.

Logs

Follow instructions here: https://github.com/sirlantis/rubocop-for-rubymine/blob/master/CONTRIBUTING.md

Environment

Operating System:
System Version: macOS 10.12.2 (16C67)
Kernel Version: Darwin 16.3.0

RubyMine Version:
RubyMine 2016.3.2
Build #RM-163.10154.57, built on January 19, 2017
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Quick Troubleshooting

  • I launched RubyMine from the command-line (using mine .) to fully propagate ENV.
@neuronaut
Copy link

I'm having the same issue using RubMine 2017.2.2. I know the configuration is correct because running Rubcop from the command line does not flag the specs as having errors. I've also tried excluding specs for various specific cops rather than just AllCops, e.g.:

Metrics/BlockLength:
  Exclude:
    - spec/**/*

But all exclusions seem to get ignored by RubyMine.

@mrcljx
Copy link
Owner

mrcljx commented Oct 23, 2017

Hey everyone - I didn't have the time to keep this projected updated anymore.

Maybe you have read about this somewhere, but RubyMine 2017.1 EAP 2 supports RuboCop now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants