I'm trying to pipe filnames into Rubocop as such:
$ git diff --name-only | tr '\n' ' ' | rubocop
However Rubocop still checks all project files.
Is there something wrong on my piping? On Rubocop? Somewhere else?
I'm trying to pipe filnames into Rubocop as such:
$ git diff --name-only | tr '\n' ' ' | rubocop
However Rubocop still checks all project files.
Is there something wrong on my piping? On Rubocop? Somewhere else?