skryukov / rubocop-gradual

Gradually improve your code with RuboCop
MIT License
36 stars 0 forks source link

Unable to lint a single file? #20

Closed pboling closed 9 months ago

pboling commented 10 months ago

I'm using the shim, so rubocop_gradual runs instead of rubocop normally.

When I run:

bundle exec rubocop -a Gemfile

the entire project is scanned as if I had not specified a file.

When I run:

NO_GRADUAL=1 bundle exec rubocop -a Gemfile

It lints the Gemfile only.

Is this a known limitation of rubocop-gradual?

Is it intentional?