Files
flame/scripts/lint.sh
2020-05-15 12:16:44 -03:00

15 lines
247 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 "$result"
echo "dartanalyzer issue"
exit 1
fi
echo "success"
exit 0