openapi-generator/bin/utils/detect_tab_in_java_class.sh
2018-03-13 14:41:23 +08:00

13 lines
262 B
Bash
Executable File

#!/bin/bash
# grep for \t in the generators
RESULT=`find modules/openapi-generator/src/ -name "*.java" | xargs grep $'\t'`
echo -e "$RESULT"
if [ "$RESULT" != "" ]; then
echo "Java files contain tab '\\t'. Please remove it and try again."
exit 1;
fi