[CI] Add scripts to detect carriage return and tab (#4526)

* add script to detect carriage return

* add check for generator as well

* add fail fast to travis config

* remove tab

* move scripts under bin/utils

* remove carriage return

* move scripts to bin/utils
This commit is contained in:
wing328
2017-01-09 18:29:41 +08:00
committed by GitHub
parent 380bed15d3
commit 4d4af71446
8 changed files with 372 additions and 336 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# grep for \t in the generators
grep -RUIl $'\t$' modules/swagger-codegen/src/main/java/io/swagger/codegen/*.java
if [ $? -ne 1 ]; then
echo "Generators (Java class files) contain tab '/t'. Please remove it and try again."
exit 1;
fi