From 9648f1b484b81830c1d7ad1efbf16a01d36eb3d2 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 2 Oct 2009 12:14:11 +0200 Subject: [PATCH] check-python-code: Show line number for problems Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Olivier Tharan <olive@google.com> --- autotools/check-python-code | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotools/check-python-code b/autotools/check-python-code index bccadd888..46f6bc050 100755 --- a/autotools/check-python-code +++ b/autotools/check-python-code @@ -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 -- GitLab