-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlint.sh
More file actions
executable file
·28 lines (25 loc) · 619 Bytes
/
lint.sh
File metadata and controls
executable file
·28 lines (25 loc) · 619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
set -e # exit on error
echo ""
echo "🧹 fmt..."
cargo fmt
echo ""
echo "🧹 clippy..."
./clippy-harsh.sh
echo ""
echo "🧹 cargo-deny..."
cargo deny check licenses
echo ""
echo "🧹 yaml-lint..."
# Check YAML files in .github
if command -v yamllint >/dev/null 2>&1; then
echo "Checking GitHub YAML files..."
for file in .github/**/*.yml .github/**/*.yaml; do
if [ -f "$file" ]; then
echo "Checking $file"
yamllint -d '{extends: relaxed, rules: {line-length: disable}}' "$file"
fi
done
else
echo "yamllint not installed, skipping YAML checks"
fi