Skip to content

Commit bd85d84

Browse files
committed
travis-ci: added checks for any uses of tabs and lines longer than 80 cols in Lua source files.
1 parent edef856 commit bd85d84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ env:
4242
before_install:
4343
- sudo luarocks install luacheck
4444
- luacheck -q .
45+
- '! grep -n -P ''(?<=.{80}).+'' --color `find . -name ''*.lua''` || (echo "ERROR: Found Lua source lines exceeding 80 columns." > /dev/stderr; exit 1)'
46+
- '! grep -n -P ''\t+'' --color `find . -name ''*.lua''` || (echo "ERROR: Cannot use tabs." > /dev/stderr; exit 1)'
4547
- sudo cpanm --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1)
4648

4749
install:

0 commit comments

Comments
 (0)