While using rubocop on the project it came out that a lot of fixes had to be done, not only those connected with my task.
So I came up with the idea to list and fix only these files that I have changed.
Two of them were:
- bin/start-dev - config/config.yaml
Calling the command directly on those files:
rubocop bin/start-dev rubocop config/config.yaml
forced rubocop to check them and throw offenses that were not supposed to appear despite the fact, these files were not included as files to be checked in:
So by default rubocop ignores such files.