Closed nsh87 closed 9 years ago
This shouldn't have passed Travis CI...the linter test failed. Try to install lintr onto Travis CI using some script.
lintr now gets installed onto Travis CI via devtools::install_github()
, as is preferred.
Added a custom build script: make sure it exits with status code 1 if there are any errors from the devtools::test()
call in the script.
It works...congratulations, me (you embedded some code style errors so your script could catch the errors in devtools::test()
and exit with status code 1 to fail the build). Now no one, including me, can submit crappy code style without build checks failing during lint. Need to do some cleanup:
Lints code on
devtools::test()
and outputs linter errors that need to be fixed. Added linting as a test function to break the build check if code doesn't conform to style guide.