Revision b757f830 autotools/check-python-code

b/autotools/check-python-code
25 25
    let ++problems
26 26
    echo "Found tabs in $script" >&2
27 27
  fi
28

  
29
  if grep -H -E '[[:space:]]$' "$script"; then
30
    let ++problems
31
    echo "Found end-of-line-whitespace in $script" >&2
32
  fi
33

  
28 34
  if [[ "$(wc --max-line-length < "$script")" -gt 80 ]]; then
29 35
    let ++problems
30 36
    echo "Longest line in $script is longer than 80 characters" >&2
......
32 38
done
33 39

  
34 40
if [[ "$problems" -gt 0 ]]; then
35
  echo "Found $problems problems while checking code." >&2
41
  echo "Found $problems problem(s) while checking code." >&2
36 42
  exit 1
37 43
fi

Also available in: Unified diff