util/lint: Exclude .apcb files from various checks
.apcb files are binary configuration data and not human readable; exclude them from license, newline, and whitespace checks. Change-Id: Idc1ddd5067cb97ef8b5758a0b8bf040d1e421871 Signed-off-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79589 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
parent
b6053bc1fc
commit
024c5c908b
@ -68,6 +68,7 @@ _shipped$|\
|
||||
config|\
|
||||
cmos\.layout|\
|
||||
cmos\.default\
|
||||
\.apcb$|\
|
||||
"
|
||||
|
||||
#space separated list of directories to test
|
||||
|
@ -15,7 +15,7 @@ LINTDIR="$(
|
||||
PIDS=""
|
||||
INCLUDED_DIRS_AND_FILES='util/* src/* payloads/* configs/* Makefile *.inc'
|
||||
EXCLUDED_DIRS='src/vendorcode/\|cbfstool/lzma/\|cbfstool/lz4/\|Documentation/\|build/\|3rdparty/\|\.git/\|coreboot-builds/\|util/nvidia/cbootimage/\|^util/goswid/vendor'
|
||||
EXCLUDED_FILES='\.gif$\|\.jpg$\|\.cksum$\|\.bin$\|\.vbt$\|\.hex$\|\.ico$\|\.o$\|\.bz2$\|\.xz$\|^.tmpconfig\|\.pyc$\|_shipped$\|sha256$\|\.png$\|\.patch$'
|
||||
EXCLUDED_FILES='\.gif$\|\.jpg$\|\.cksum$\|\.bin$\|\.vbt$\|\.hex$\|\.ico$\|\.o$\|\.bz2$\|\.xz$\|^.tmpconfig\|\.pyc$\|_shipped$\|sha256$\|\.png$\|\.patch$\|\.apcb$'
|
||||
|
||||
HAVE_FILE=$(command -v file 1>/dev/null 2>&1; echo $?)
|
||||
|
||||
|
@ -11,7 +11,7 @@ LINTDIR="$(
|
||||
# shellcheck source=helper_functions.sh
|
||||
. "${LINTDIR}/helper_functions.sh"
|
||||
|
||||
EXCLUDELIST='^src/vendorcode/|^util/kconfig/|^util/nvidia/cbootimage|^util/goswid|__pycache__|COPYING|LICENSE|README|_shipped$|\.patch$|\.bin$|\.hex$|\.jpg$|\.gif$|\.ttf$|\.woff$|\.png$|\.eot$|\.vbt$|\.ico$|\.md$'
|
||||
EXCLUDELIST='^src/vendorcode/|^util/kconfig/|^util/nvidia/cbootimage|^util/goswid|__pycache__|COPYING|LICENSE|README|_shipped$|\.patch$|\.bin$|\.hex$|\.jpg$|\.gif$|\.ttf$|\.woff$|\.png$|\.eot$|\.vbt$|\.ico$|\.md$\|\.apcb$'
|
||||
INCLUDELIST="src util payloads Makefile* toolchain.inc tests"
|
||||
|
||||
# shellcheck disable=SC2086,SC2046
|
||||
|
@ -23,6 +23,7 @@ HEADER_EXCLUDED="\
|
||||
\.cksum$|\
|
||||
\.bin$|\
|
||||
\.vbt$|\
|
||||
\.apcb$|\
|
||||
\.hex$|\
|
||||
\.patch$|\
|
||||
_shipped$|\
|
||||
|
Loading…
x
Reference in New Issue
Block a user