Debian Codegraph @

.github/workflows/style.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 set -euo pipefail
4
5 modified_lines=$(git status --short -uno | wc -l)
6 (( modified_lines == 0 )) && exit 0
7
8 echo >&2
9 echo >&2 "ERROR: Style changes detected"
10 echo >&2
11
12 git diff
13
14 echo >&2
15 echo >&2 "ERROR: Squash the above changes as needed"
16 echo >&2
17
18 exit 1