Files
hash-wallet/scripts/lint.sh
T

19 lines
440 B
Bash
Executable File

#!/bin/bash
set -x -e
cd $(dirname $0)
cd ..
for i in cw_core cw_monero cw_wownero cw_bitcoin cw_bitcoin_cash cw_dogecoin cw_evm cw_nano;
do
dart fix --apply $i/
dart format --line-length=100 $i/
if [[ ! "x$ABORT_ON_CHANGE" == "x" ]];
then
if [[ ! -z "$(git status --porcelain -- $(find $i))" ]];
then
echo "Please run scripts/lint.sh ($i has changes)"
exit 1
fi
fi
done