mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 04:27:07 +00:00
[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:
10
bin/utils/detect_tab_in_java_class.sh
Executable file
10
bin/utils/detect_tab_in_java_class.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user