Debian Codegraph @

ci/format.sh

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