Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (12 sloc) 466 Bytes
#!/bin/sh
set -e
ROOT="$(dirname "$0")"
PATH="$PATH:$HOME/.local/bin"
error () { echo "ERROR: $@" >&2; exit 1; }
cppcheck --enable=all --error-exitcode=1 \
--suppress=unusedFunction:"$ROOT/src/macros.h" "$ROOT"/src/*.[ch]
cpplint --counting=detailed --recursive "$ROOT"/src
grep -RF $'\t' "$ROOT"/src &&
error 'Tabs found. Use spaces.' || echo 'Whitespace OK'
grep -RP '[^[:cntrl:][:print:]]' "$ROOT"/src &&
error 'No emojis.' || echo 'Emojis OK'
You can’t perform that action at this time.