-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell invocation should exit non-0 exit status on failure #491
Comments
Since lintr is a package, rather than a command line tool, the exit code is the responsibilty of your lintr-calling script. You could add |
I don't understand why this mentality dominates the R ecosystem. Name one other languages that by convention suggests running linters as libraries
Here flake8 defines a main entry point which then raises SystemExit if the number of found issues is > 0. |
Suggest adding a section to the docs to explain how to run lintr at the command line (and return an appropriate exit code from lintr) |
There is a setting Can you try putting |
Thanks @AshesITR , I verified that https://github.com/jimhester/lintr/blob/5e53d7a1435739faf05651f6abc754de67941b5c/R/methods.R#L81 IMO, that should be the default, but understand why there might be reluctance to change it and create backwards incompatibility. |
I believe superseded by #1226 |
Common convention with lint tools is to exit >0 if errors are found. That is not the case with lintr, either for
lint()
orlint_package()
:The text was updated successfully, but these errors were encountered: