rubocop-emacs icon indicating copy to clipboard operation
rubocop-emacs copied to clipboard

Enabling only when config is present in a project

Open costa opened this issue 3 years ago • 0 comments

To enable RuboCop only when config (.rubocop.yml) is present in a project directory, I've created the global config (~/.rubocop.yml) with the following:

AllCops:
  Exclude:
    - '**/*'

But it doesn't seem to work (innocent projects with no config get rubocopped anyway). I'm using Spacemacs (with ruby layer), and I'd like a clean solution.

Suggestions are most appreciated.

p.s. tried adding --force-exclusion to the "check command" with no effect

costa avatar Oct 09 '21 08:10 costa