Skip to content

Commit

Permalink
Exclude JSON files from SPDX check
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <[email protected]>
  • Loading branch information
hanno-becker committed Jun 1, 2024
1 parent 821ebd8 commit 93c1a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/lint
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ echo "::endgroup::"
check-spdx()
{
local success=true
for file in $(git ls-files -- ":/" ":/!:*LICENSE*" ":/!:.git*" ":/!:flake.lock"); do
for file in $(git ls-files -- ":/" ":/!:*.json" ":/!:*LICENSE*" ":/!:.git*" ":/!:flake.lock"); do
if [[ $(grep "SPDX-License-Identifier:" $file | wc -l) == 0 ]]; then
echo "::error file=$file,line=${line:-1},title=Missing license header error::$file is missing SPDX License header"
success=false
Expand Down

0 comments on commit 93c1a16

Please sign in to comment.