I just started using Rubocop in my Ruby on Rails project and created a git branch to refactor and get Rubocop up to speed with what I want. I finally have no offenses in when I run the command
$ rubocop
However, I tried to integrate Rubocop into my CircleCI builds and that is where I am having trouble. Here is the relevant part of my circle.yml file:
test:
post:
- bundle exec rubocop
The issue is, locally Rubocop says it is inspecting 68 files but on CircleCI it says it is inspecting 5624 files. Because of that it is not passing. What would cause me to get a different output when running locally versus on CircleCI?
Also, if I run:
bundle exec rubocop
locally I get the output I am expecting (68 files, all good).
I figuring it out.
I'm not sure why, but for some reason on my local host it is ignoring the vendor file, but on CircleCI it was not so I added it to the .rubocop.yml file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With