From a8a060d3f68818e63a0ee6cb2123abd8b6b6cabe Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 16 Mar 2021 14:00:25 -0700 Subject: [PATCH] devtools: ignore JSON files for SPDX check The JSON file format does not support comments so there is no good way to add SPDX license identifier. This solves false positives that arrive from the use of JSON in crypto dev tests. Signed-off-by: Stephen Hemminger --- devtools/check-spdx-tag.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/check-spdx-tag.sh b/devtools/check-spdx-tag.sh index 3f2912e922..a606ef85f0 100755 --- a/devtools/check-spdx-tag.sh +++ b/devtools/check-spdx-tag.sh @@ -25,8 +25,8 @@ check_spdx() { ':^*/Kbuild' ':^*/README' \ ':^license/' ':^config/' ':^buildtools/' \ ':^*.cocci' ':^*.abignore' \ - ':^*.map' ':^*.ini' ':^*.data' ':^*.cfg' ':^*.txt' \ - ':^*.svg' ':^*.png'\ + ':^*.map' ':^*.ini' ':^*.data' ':^*.json' ':^*.cfg' ':^*.txt' \ + ':^*.svg' ':^*.png' \ > $tmpfile errors=$(wc -l < $tmpfile) -- 2.20.1