mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-25 11:00:52 +00:00
* 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
11 lines
257 B
Bash
Executable File
11 lines
257 B
Bash
Executable File
#!/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
|
|
|