File: check-whitespace.sh

package info (click to toggle)
empathy 3.25.90%2Breally3.12.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 39,616 kB
  • sloc: ansic: 88,757; sh: 4,473; python: 3,185; makefile: 1,809; xml: 1,249
file content (18 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

fail=0

if grep -n ' $' "$@"
then
  echo "^^^ The above files contain unwanted trailing spaces"
  fail=1
fi

# TODO: enable tab checking once all Empathy switched to TP coding style
#if grep -n '	' "$@"
#then
#  echo "^^^ The above files contain tabs"
#  fail=1
#fi

exit $fail