Debian Codegraph @

source/misc/lint/runLint.sh

raw symbols SCIP
1 #! /bin/bashscip-shell filesystem . . `/bin/bash`.
2 set -euo pipefail
3
4 TMPFILE=$(mktempscip-shell system . . mktemp. /tmp/sago-lint.XXXXXXscip-shell filesystem . . `/tmp/sago-lint.XXXXXX`.)
5
6 findscip-shell system . . find. ./source/code/ -name "*.cpp" -not -path "./source/code/Libs/*" | xargsscip-shell system . . xargs. --no-run-if-empty grep --with-filename --line-number "^ " >> ${TMPFILE} || truescip-shell system . . true.
7 findscip-shell system . . find. ./source/code/ -name "*.h*" -not -path "./source/code/Libs/*" | xargsscip-shell system . . xargs. --no-run-if-empty grep --with-filename --line-number "^ " >> ${TMPFILE} || truescip-shell system . . true.
8
9 if [scip-shell system . . `[`. -s "$TMPFILE" ]
10 then
11 echoscip-shell system . . echo. "In the following places the lines are indended with spaces. This project uses tabs for indentation."
12 echoscip-shell system . . echo. "The rule applies to comments too although the check can be bypassed by using either C++ style comments or \" *\" to start a line (Doxygen comments)"
13 catscip-shell system . . cat. "$TMPFILE"
14 echoscip-shell system . . echo. ""
15 echoscip-shell system . . echo. "Validation failed"
16 rmscip-shell system . . rm. "$TMPFILE"
17 exit 1
18 fi
19
20 rmscip-shell system . . rm. "$TMPFILE"