Skip to content

Commit

Permalink
Add ShellCheck's --enable=all inside scripts/
Browse files Browse the repository at this point in the history
Strengthen static code analysis for shell scripts.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes openzfs#12914
  • Loading branch information
szubersk authored Jan 13, 2022
1 parent 8a7c4ef commit 8361369
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 81 deletions.
1 change: 1 addition & 0 deletions scripts/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ EXTRA_DIST = \
$(EXTRA_SCRIPTS)

SHELLCHECKSCRIPTS = $(EXTRA_SCRIPTS)
SHELLCHECK_OPTS = --enable=all

define EXTRA_ENVIRONMENT

Expand Down
4 changes: 2 additions & 2 deletions scripts/commitcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ new_change_commit()
error=1
fi

return $error
return "$error"
}

is_coverity_fix()
Expand Down Expand Up @@ -99,7 +99,7 @@ coverity_fix_commit()
error=1
fi

return $error
return "$error"
}

if [ -n "$1" ]; then
Expand Down
Loading

0 comments on commit 8361369

Please sign in to comment.