Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling only when config is present in a project #37

Open
costa opened this issue Oct 9, 2021 · 0 comments
Open

Enabling only when config is present in a project #37

costa opened this issue Oct 9, 2021 · 0 comments

Comments

@costa
Copy link

costa commented Oct 9, 2021

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

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

No branches or pull requests

1 participant