improved tool debugging

This commit is contained in:
Luxferre
2026-03-22 12:02:17 +02:00
parent cd2de78c2c
commit 3a6aa7a8fc
Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Custom formatter following project guidelines:
# 1. Standard gofmt
# 2. 2-space indentation (expand tabs)
# 3. Report/Check 112-char limit
FILES=$(find . -name "*.go" -not -path "./bin/*")
for f in $FILES; do
gofmt -s -w "$f"
expand -t 2 "$f" > "$f.tmp" && mv "$f.tmp" "$f"
done
LONG_LINES=$(grep -n '.\{113,\}' $FILES)
if [ -n "$LONG_LINES" ]; then
echo "Warning: The following lines exceed 112 characters:"
echo "$LONG_LINES"
fi