aboutsummaryrefslogtreecommitdiff
path: root/dev/lint-r
diff options
context:
space:
mode:
Diffstat (limited to 'dev/lint-r')
-rwxr-xr-xdev/lint-r11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev/lint-r b/dev/lint-r
index 7d5f4cd311..c15d57aad8 100755
--- a/dev/lint-r
+++ b/dev/lint-r
@@ -28,3 +28,14 @@ if ! type "Rscript" > /dev/null; then
fi
`which Rscript` --vanilla "$SPARK_ROOT_DIR/dev/lint-r.R" "$SPARK_ROOT_DIR" | tee "$LINT_R_REPORT_FILE_NAME"
+
+NUM_LINES=`wc -l < "$LINT_R_REPORT_FILE_NAME"`
+if [ "$NUM_LINES" = "0" ] ; then
+ lint_status=0
+ echo "lintr checks passed."
+else
+ lint_status=1
+ echo "lintr checks failed."
+fi
+
+exit "$lint_status"