Debian Codegraph @

ci/format.sh

raw symbols SCIP
1 #! /usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 # Script to check code formatting.
4
5 set -eu
6
7 # Check rust formatting.
8 cargoscip-shell system . . cargo. fmt -- --check
9
10 # Check shell script formatting.
11 if command -v shfmt &>/dev/nullscip-shell filesystem . . `/dev/null`.; then
12 shfmt -i 4 -d ci/*.sh tests/*.sh
13 else
14 echoscip-shell system . . echo. "shfmt is not installed."
15 fi
16
17 exit 0