mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
Add shell script linting: Check for shellcheck warnings in shell scripts
This commit is contained in:
parent
b95d3b8f54
commit
bc4a099bff
3 changed files with 6 additions and 1 deletions
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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue