Skip to content

Commit

Permalink
Add shell script linting: Check for shellcheck warnings in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and cdecker committed Apr 4, 2018
1 parent b95d3b8 commit bc4a099
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ check-includes:
check-cppcheck: .cppcheck-suppress
@trap 'rm -f .cppcheck-suppress' 0; git ls-files -- "*.c" "*.h" | grep -vE '^ccan/' | xargs cppcheck -q --language=c --std=c11 --error-exitcode=1 --suppressions-list=.cppcheck-suppress

check-source: check-makefile check-source-bolt check-whitespace check-markdown check-spelling check-python check-includes check-cppcheck
check-shellcheck:
git ls-files -- "*.sh" | xargs shellcheck

check-source: check-makefile check-source-bolt check-whitespace check-markdown check-spelling check-python check-includes check-cppcheck check-shellcheck

full-check: check check-source

Expand Down
1 change: 1 addition & 0 deletions contrib/Dockerfile.builder
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN apt-get -qq update && \
automake \
clang \
cppcheck \
shellcheck \
eatmydata \
software-properties-common \
build-essential \
Expand Down
1 change: 1 addition & 0 deletions contrib/Dockerfile.builder.i386
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN apt-get -qq update && \
automake \
clang \
cppcheck \
shellcheck \
eatmydata \
software-properties-common \
build-essential \
Expand Down

0 comments on commit bc4a099

Please sign in to comment.