Merge "dib-lint: check for tab indent in files"
This commit is contained in:
commit
578c2e48f8
1 changed files with 8 additions and 0 deletions
|
@ -84,4 +84,12 @@ for i in $(find elements -type f); do
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for i in $(find elements -type f -and -name '*.md' -or -type f -executable); do
|
||||||
|
# Check for tab indentation
|
||||||
|
if grep -q $'^ *\t' ${i}; then
|
||||||
|
echo "ERROR: $i contains tab characters"
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
exit $rc
|
exit $rc
|
||||||
|
|
Loading…
Reference in a new issue