Merge "Add dib-lint exclusions"
This commit is contained in:
commit
d5caf4418d
@ -118,12 +118,16 @@ done
|
|||||||
|
|
||||||
for i in $(find elements -type f -and -name '*.md' -or -type f -executable); do
|
for i in $(find elements -type f -and -name '*.md' -or -type f -executable); do
|
||||||
# Check for tab indentation
|
# Check for tab indentation
|
||||||
|
if ! excluded indent; then
|
||||||
if grep -q $'^ *\t' ${i}; then
|
if grep -q $'^ *\t' ${i}; then
|
||||||
error "$i contains tab characters"
|
error "$i contains tab characters"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! excluded newline; then
|
||||||
if [ "$(tail -c 1 $i)" != "" ]; then
|
if [ "$(tail -c 1 $i)" != "" ]; then
|
||||||
error "No newline at end of file: $i"
|
error "No newline at end of file: $i"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
exit $rc
|
exit $rc
|
||||||
|
Loading…
Reference in New Issue
Block a user