mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
80f4de55fd
*DASH* doesn't implement this check into travis1f379b1f0
Add tab char lint check and exclude imported dependencies (MeshCollider)dd365612f
Add a lint check for trailing whitespace. (Evan Klitzke) Pull request description: This is a new attempt at #11005 Addressed nits, excluded imported dependencies, squashed the original commits, and added a test for tab characters in the *.cpp *.h *.md *.py *.sh files too as per @practicalswift suggestion Tree-SHA512: d2dfbedc8469026f39b0c63d9a71d8b8e2ed3815d69fecaabad10304d977d6345728c4c865ec7600ed539b1f7cabaa826b50312f4d2eef0a1583d4ff9024c36d
23 lines
584 B
Bash
Executable File
23 lines
584 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2017 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
#
|
|
# This script runs all contrib/devtools/lint-*.sh files, and fails if any exit
|
|
# with a non-zero status code.
|
|
|
|
set -u
|
|
|
|
SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
|
|
LINTALL=$(basename "${BASH_SOURCE[0]}")
|
|
|
|
for f in "${SCRIPTDIR}"/lint-*.sh; do
|
|
if [ "$(basename "$f")" != "$LINTALL" ]; then
|
|
if ! "$f"; then
|
|
echo "^---- failure generated from $f"
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|