mrcljx / rubocop-for-rubymine

DEPRECATED: RubyMine supports RuboCop now
https://blog.jetbrains.com/ruby/2017/01/rubymine-2017-1-eap-2-creating-gemsets-rubocop-support/
MIT License
131 stars 29 forks source link

Exclude rule for spec is ignored #49

Open alexander-myltsev opened 7 years ago

alexander-myltsev commented 7 years ago

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

neuronaut commented 7 years ago

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 commented 7 years ago

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.