Debian Codegraph @

.githooks/pre-commit

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 # Fail on unformatted Go files
3 unformatted=$(gofmtscip-shell system . . gofmt. -l . 2>/dev/nullscip-shell filesystem . . `/dev/null`.)
4 if [scip-shell system . . `[`. -n "$unformatted" ]; then
5 echoscip-shell system . . echo. "gofmt: these files are not formatted:"
6 echoscip-shell system . . echo. "$unformatted"
7 exit 1
8 fi