From 80f6dfaf6c569169fe2d0418f6ab7ff44897d0fa Mon Sep 17 00:00:00 2001 From: rakhimov Date: Sun, 11 Dec 2016 16:49:05 -0800 Subject: [PATCH] Add check for tabs and trailing spaces in text The checks are run on Travis-CI. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 5c72397..cbab4bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ install: - pip install sphinx sphinx_rtd_theme script: + - grep -P -n "(\t|\s$)" *.rst mef/*.rst >> _warnings || echo "Great, no tabs or trailing spaces!" - spell -n -o -d en_us.ascii.add.spl mef/* | grep -v 'bibliography' > _warnings || echo "no spelling errors!" - grep -P -n "[^[:ascii:]]" mef/* | grep -v 'bibliography' >> _warnings || echo "no non-ASCII chars!" - make latexpdf > /dev/null || echo "Outdated LaTeX on Ubuntu 14.04 :("