Revision 42f539ee
b/autotools/check-python-code | ||
---|---|---|
41 | 41 |
echo "Forbidden function 'xrange' used in $script" >&2 |
42 | 42 |
fi |
43 | 43 |
|
44 |
if grep -n -H -E -i '#[[:space:]]*(vim|Local[[:space:]]+Variables):' "$script" |
|
45 |
then |
|
46 |
let ++problems |
|
47 |
echo "Found editor-specific settings in $script" >&2 |
|
48 |
fi |
|
49 |
|
|
44 | 50 |
if [[ "$(wc --max-line-length < "$script")" -gt 80 ]]; then |
45 | 51 |
let ++problems |
46 | 52 |
echo "Longest line in $script is longer than 80 characters" >&2 |
Also available in: Unified diff