Commit 9648f1b4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

check-python-code: Show line number for problems


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent 3d9eb52b
......@@ -21,12 +21,12 @@
let problems=0
for script; do
if grep -H -F $'\t' "$script"; then
if grep -n -H -F $'\t' "$script"; then
let ++problems
echo "Found tabs in $script" >&2
fi
if grep -H -E '[[:space:]]$' "$script"; then
if grep -n -H -E '[[:space:]]$' "$script"; then
let ++problems
echo "Found end-of-line-whitespace in $script" >&2
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment