Files
flame/scripts/lint.sh
2020-05-09 13:18:09 -04:00

14 lines
230 B
Bash
Executable File

if [[ $(flutter format -n .) ]]; then
echo "flutter format issue"
exit 1
fi
result=`dartanalyzer lib/`
if ! echo "$result" | grep -q "No issues found!"; then
echo "dartanalyzer issue"
exit 1
fi
echo "success"
exit 0