mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-13 19:14:23 +01:00
Add shell script linting: Check for shellcheck warnings in shell scripts
This commit is contained in:
committed by
Christian Decker
parent
b95d3b8f54
commit
bc4a099bff
5
Makefile
5
Makefile
@@ -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
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN apt-get -qq update && \
|
||||
automake \
|
||||
clang \
|
||||
cppcheck \
|
||||
shellcheck \
|
||||
eatmydata \
|
||||
software-properties-common \
|
||||
build-essential \
|
||||
|
||||
@@ -11,6 +11,7 @@ RUN apt-get -qq update && \
|
||||
automake \
|
||||
clang \
|
||||
cppcheck \
|
||||
shellcheck \
|
||||
eatmydata \
|
||||
software-properties-common \
|
||||
build-essential \
|
||||
|
||||
Reference in New Issue
Block a user