I am using the following command to run Rubocop on Travis CI, is there anyway I can enforce to exit with 0 only when finding errors
bundle exec rubocop
- I have a cop which is configured as a warning in
Style/Documentation: Severity: warning
Travis CI treats a command as a successful one only if its exit code is equal to
0 as exit code when it finds no warnings
but when it finds at least one offence,
1 as exit code, no matter whether this offence is an error or a warning.
As a result, Travis CI builds are failed when only warnings are found by Rubocop.
Thanks in advance…