lint: more reuse of SHARED_EXCLUDED_SUBTREES

This commit is contained in:
fanquake 2026-03-16 20:15:10 +08:00
parent 8864917d8b
commit f55c891a65
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1
3 changed files with 4 additions and 7 deletions

View File

@ -19,7 +19,6 @@ HEADER_ID_PREFIX = 'BITCOIN_'
HEADER_ID_SUFFIX = '_H'
EXCLUDE_FILES_WITH_PREFIX = ['contrib/devtools/bitcoin-tidy',
'src/crypto/ctaes',
'src/tinyformat.h',
'src/bench/nanobench.h',
'src/test/fuzz/FuzzedDataProvider.h'] + SHARED_EXCLUDED_SUBTREES

View File

@ -40,6 +40,8 @@ import sys
from subprocess import check_output, CalledProcessError
from lint_ignore_dirs import SHARED_EXCLUDED_SUBTREES
KNOWN_VIOLATIONS = [
"src/dbwrapper.cpp:.*vsnprintf",
@ -50,13 +52,8 @@ KNOWN_VIOLATIONS = [
]
REGEXP_EXTERNAL_DEPENDENCIES_EXCLUSIONS = [
"src/crypto/ctaes/",
"src/ipc/libmultiprocess/",
"src/leveldb/",
"src/secp256k1/",
"src/minisketch/",
"src/tinyformat.h",
]
] + SHARED_EXCLUDED_SUBTREES
LOCALE_DEPENDENT_FUNCTIONS = [
"alphasort", # LC_COLLATE (via strcoll)

View File

@ -9,4 +9,5 @@ SHARED_EXCLUDED_SUBTREES = ["src/leveldb/",
"src/secp256k1/",
"src/minisketch/",
"src/ipc/libmultiprocess/",
"src/crypto/ctaes/",
]