on 8ebab21 help sign in
crush/scripts/check_log_capitalization.sh
5 lines 232 B history raw
1#!/bin/bash
2if grep -rE 'slog\.(Error|Info|Warn|Debug|Fatal|Print|Println|Printf)\(["\"][a-z]' --include="*.go" . 2>/dev/null; then
3 echo "❌ Log messages must start with a capital letter. Found lowercase logs above."
4 exit 1
5fi