Skip to content

Commit fa82e89

Browse files
author
MarcoFalke
committed
Move lint script and data file to avoid lint- prefix
This is needed for the next commit
1 parent 4faf7a1 commit fa82e89

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

test/lint/lint-format-strings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS=(
2929
)
3030

3131
EXIT_CODE=0
32-
if ! python3 -m doctest test/lint/lint-format-strings.py; then
32+
if ! python3 -m doctest "test/lint/run-lint-format-strings.py"; then
3333
EXIT_CODE=1
3434
fi
3535
for S in "${FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS[@]}"; do
3636
IFS="," read -r FUNCTION_NAME SKIP_ARGUMENTS <<< "${S}"
3737
for MATCHING_FILE in $(git grep --full-name -l "${FUNCTION_NAME}" -- "*.c" "*.cpp" "*.h" | sort | grep -vE "^src/(leveldb|secp256k1|minisketch|tinyformat|univalue|test/fuzz/strprintf.cpp)"); do
3838
MATCHING_FILES+=("${MATCHING_FILE}")
3939
done
40-
if ! test/lint/lint-format-strings.py --skip-arguments "${SKIP_ARGUMENTS}" "${FUNCTION_NAME}" "${MATCHING_FILES[@]}"; then
40+
if ! "test/lint/run-lint-format-strings.py" --skip-arguments "${SKIP_ARGUMENTS}" "${FUNCTION_NAME}" "${MATCHING_FILES[@]}"; then
4141
EXIT_CODE=1
4242
fi
4343
done

test/lint/lint-spelling.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if ! command -v codespell > /dev/null; then
1414
exit 0
1515
fi
1616

17-
IGNORE_WORDS_FILE=test/lint/lint-spelling.ignore-words.txt
17+
IGNORE_WORDS_FILE="test/lint/spelling.ignore-words.txt"
1818
mapfile -t FILES < <(git ls-files -- ":(exclude)build-aux/m4/" ":(exclude)contrib/seeds/*.txt" ":(exclude)depends/" ":(exclude)doc/release-notes/" ":(exclude)src/leveldb/" ":(exclude)src/crc32c/" ":(exclude)src/qt/locale/" ":(exclude)src/qt/*.qrc" ":(exclude)src/secp256k1/" ":(exclude)src/minisketch/" ":(exclude)src/univalue/" ":(exclude)contrib/builder-keys/keys.txt" ":(exclude)contrib/guix/patches")
1919
if ! codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=${IGNORE_WORDS_FILE} "${FILES[@]}"; then
2020
echo "^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in ${IGNORE_WORDS_FILE}"

0 commit comments

Comments
 (0)