Skip to content

Commit 0142c80

Browse files
willieyzmkannwischer
authored andcommitted
lint: lint script extension
- This commit extend the `lint` script, made it also check following: - "*.mk" - "*.yml" - "**/Makefile*" - Alos, this commit add the missing `error "$4"` in `gh_error()`. Signed-off-by: willieyz <willie.zhao@chelpis.com>
1 parent 016da32 commit 0142c80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/lint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ gh_summary_failure()
9393

9494
gh_error()
9595
{
96+
error "$4"
9697
if $IN_GITHUB_CONTEXT; then
9798
echo "::error file=$1,line=${2:-1},title=$3::$4"
9899
fi
@@ -156,7 +157,7 @@ check-spdx()
156157
success=false
157158
fi
158159
done
159-
for file in $(git ls-files -- "*.[chsS]" "*.py" ":/!proofs/cbmc/*.py" ":/!examples/bring_your_own_fips202/custom_fips202/tiny_sha3/*"); do
160+
for file in $(git ls-files -- "*.[chsS]" "*.py" "*.mk" "*.yml" "**/Makefile*" ":/!proofs/cbmc/*.py" ":/!examples/bring_your_own_fips202/custom_fips202/tiny_sha3/*"); do
160161
# Ignore symlinks
161162
if [[ ! -L $file && $(grep "Copyright (c) The mldsa-native project authors" $file | wc -l) == 0 ]]; then
162163
gh_error "$file" "${line:-1}" "Missing copyright header error" "$file is missing copyright header"

0 commit comments

Comments
 (0)