dib-lint: check for tab indent in files
With this change, dib-lint ensure elements do not use tab indentation. The following files are checked: - executable file - .md file Change-Id: I071262ff9f6599548f869f5439ee127f64eeb46f
This commit is contained in:
parent
dde3360057
commit
bd69d32806
@ -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 New Issue
Block a user