Skip to content

Commit 4e2e063

Browse files
committed
lint: Consolidate with mlkem-native
This aligns the lint script with mlkem-native: - Fixing a typo that was discovered in #640 - Uncommenting the shell linting I have no memories why the latter was commented out. Signed-off-by: Matthias J. Kannwischer <[email protected]>
1 parent f6b1162 commit 4e2e063

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/lint

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ gh_summary_failure()
9393

9494
gh_error()
9595
{
96-
if $IN_GITHUB_COgNTEXT; then
96+
if $IN_GITHUB_CONTEXT; then
9797
echo "::error file=$1,line=${2:-1},title=$3::$4"
9898
fi
9999
}
@@ -112,9 +112,9 @@ gh_group_start "Linting nix files with nixpkgs-fmt"
112112
checkerr "Lint nix" "$(nixpkgs-fmt --check "$ROOT")"
113113
gh_group_end
114114

115-
#gh_group_start "Linting shell scripts with shfmt"
116-
#checkerr "Lint shell" "$(shfmt -s -l -i 2 -ci -fn $(shfmt -f $(git grep -l '' :/)))"
117-
#gh_group_end
115+
gh_group_start "Linting shell scripts with shfmt"
116+
checkerr "Lint shell" "$(shfmt -s -l -i 2 -ci -fn $(shfmt -f $(git grep -l '' :/)))"
117+
gh_group_end
118118

119119
gh_group_start "Linting python scripts with black"
120120
if ! diff=$(black --check --diff -q --include "(scripts/tests|scripts/simpasm|scripts/cfify|scripts/autogen|scripts/check-namespace|\.py$)" "$ROOT"); then

0 commit comments

Comments
 (0)