mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 10:43:30 +00:00
linting
This commit is contained in:
1
scripts/check-doc.sh
vendored
1
scripts/check-doc.sh
vendored
@@ -2,6 +2,7 @@
|
|||||||
# author: deadc0de6 (https://github.com/deadc0de6)
|
# author: deadc0de6 (https://github.com/deadc0de6)
|
||||||
# Copyright (c) 2022, deadc0de6
|
# Copyright (c) 2022, deadc0de6
|
||||||
|
|
||||||
|
# stop on first error
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
## test doc external links
|
## test doc external links
|
||||||
|
|||||||
3
scripts/check-syntax.sh
vendored
3
scripts/check-syntax.sh
vendored
@@ -3,7 +3,6 @@
|
|||||||
# Copyright (c) 2022, deadc0de6
|
# Copyright (c) 2022, deadc0de6
|
||||||
|
|
||||||
# stop on first error
|
# stop on first error
|
||||||
#set -ev
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# ensure binaries are here
|
# ensure binaries are here
|
||||||
@@ -41,6 +40,7 @@ pyflakes --version
|
|||||||
# SC2126: Consider using grep -c instead of grep|wc -l
|
# SC2126: Consider using grep -c instead of grep|wc -l
|
||||||
# SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects
|
# SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects
|
||||||
# SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?
|
# SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?
|
||||||
|
# SC1004: This backslash+linefeed is literal. Break outside single quotes if you just want to break the line
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
echo "checking shell scripts with shellcheck"
|
echo "checking shell scripts with shellcheck"
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
@@ -51,6 +51,7 @@ find . -iname '*.sh' | while read -r script; do
|
|||||||
-e SC2126 \
|
-e SC2126 \
|
||||||
-e SC2129 \
|
-e SC2129 \
|
||||||
-e SC2181 \
|
-e SC2181 \
|
||||||
|
-e SC1004 \
|
||||||
"${script}"
|
"${script}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user