lint: Remove some subtrees from exclusion
Either they don't violate the lints, or can be easily fixed. Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
5b543b15eb
commit
1e6d1837a0
|
@ -12,7 +12,7 @@ HEADER_ID_PREFIX="ZCASH_"
|
||||||
HEADER_ID_PREFIX_UPSTREAM="BITCOIN_"
|
HEADER_ID_PREFIX_UPSTREAM="BITCOIN_"
|
||||||
HEADER_ID_SUFFIX="_H"
|
HEADER_ID_SUFFIX="_H"
|
||||||
|
|
||||||
REGEXP_EXCLUDE_FILES_WITH_PREFIX="src/(crypto/ctaes/|leveldb/|rust/|secp256k1/|tinyformat.h|univalue/)"
|
REGEXP_EXCLUDE_FILES_WITH_PREFIX="src/(leveldb/|secp256k1/|univalue/)"
|
||||||
|
|
||||||
EXIT_CODE=0
|
EXIT_CODE=0
|
||||||
for HEADER_FILE in $(git ls-files -- "*.h" | grep -vE "^${REGEXP_EXCLUDE_FILES_WITH_PREFIX}")
|
for HEADER_FILE in $(git ls-files -- "*.h" | grep -vE "^${REGEXP_EXCLUDE_FILES_WITH_PREFIX}")
|
||||||
|
|
|
@ -13,7 +13,7 @@ export LC_ALL=C
|
||||||
cd "$(dirname $0)/../.." || exit 1
|
cd "$(dirname $0)/../.." || exit 1
|
||||||
|
|
||||||
filter_suffix() {
|
filter_suffix() {
|
||||||
git ls-files | grep -E "^src/.*\.${1}"'$' | grep -Ev "/(leveldb|secp256k1|univalue)/"
|
git ls-files | grep -E "^src/.*\.${1}"'$'
|
||||||
}
|
}
|
||||||
|
|
||||||
EXIT_CODE=0
|
EXIT_CODE=0
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
EXIT_CODE=0
|
EXIT_CODE=0
|
||||||
for SHELL_SCRIPT in $(git ls-files -- "*.sh" | grep -vE "src/(secp256k1|univalue)/"); do
|
for SHELL_SCRIPT in $(git ls-files -- "*.sh"); do
|
||||||
if grep -q "# This script is intentionally locale-dependent by not setting \"export LC_ALL=C\"." "${SHELL_SCRIPT}"; then
|
if grep -q "# This script is intentionally locale-dependent by not setting \"export LC_ALL=C\"." "${SHELL_SCRIPT}"; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -44,4 +44,4 @@ disabled=(
|
||||||
SC2236 # Don't force -n instead of ! -z.
|
SC2236 # Don't force -n instead of ! -z.
|
||||||
)
|
)
|
||||||
shellcheck -e "$(IFS=","; echo "${disabled[*]}")" \
|
shellcheck -e "$(IFS=","; echo "${disabled[*]}")" \
|
||||||
$(git ls-files -- "*.sh" | grep -vE 'src/(secp256k1|univalue)/')
|
$(git ls-files -- "*.sh")
|
||||||
|
|
|
@ -31,14 +31,14 @@ if [ -z "${TRAVIS_COMMIT_RANGE}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
showdiff() {
|
showdiff() {
|
||||||
if ! git diff -U0 "${TRAVIS_COMMIT_RANGE}" -- "." ":(exclude)depends/patches/" ":(exclude)src/leveldb/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/" ":(exclude)doc/release-notes/"; then
|
if ! git diff -U0 "${TRAVIS_COMMIT_RANGE}" -- "." ":(exclude)depends/patches/" ":(exclude)doc/release-notes/"; then
|
||||||
echo "Failed to get a diff"
|
echo "Failed to get a diff"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
showcodediff() {
|
showcodediff() {
|
||||||
if ! git diff -U0 "${TRAVIS_COMMIT_RANGE}" -- *.cpp *.h *.md *.py *.sh ":(exclude)src/leveldb/" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/" ":(exclude)doc/release-notes/"; then
|
if ! git diff -U0 "${TRAVIS_COMMIT_RANGE}" -- *.cpp *.h *.md *.py *.sh ":(exclude)doc/release-notes/"; then
|
||||||
echo "Failed to get a diff"
|
echo "Failed to get a diff"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue