Exclude squawk rule forbidding regular-sized integers
This commit is contained in:
parent
ab1bea515c
commit
69bff7bb77
2 changed files with 6 additions and 3 deletions
4
script/lib/squawk.toml
Normal file
4
script/lib/squawk.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
excluded_rules = [
|
||||||
|
"prefer-big-int",
|
||||||
|
"prefer-bigint-over-int",
|
||||||
|
]
|
|
@ -8,13 +8,12 @@ set -e
|
||||||
|
|
||||||
if [ -z "$GITHUB_BASE_REF" ]; then
|
if [ -z "$GITHUB_BASE_REF" ]; then
|
||||||
echo 'Not a pull request, skipping squawk modified migrations linting'
|
echo 'Not a pull request, skipping squawk modified migrations linting'
|
||||||
return 0
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SQUAWK_VERSION=0.26.0
|
SQUAWK_VERSION=0.26.0
|
||||||
SQUAWK_BIN="./target/squawk-$SQUAWK_VERSION"
|
SQUAWK_BIN="./target/squawk-$SQUAWK_VERSION"
|
||||||
SQUAWK_ARGS="--assume-in-transaction"
|
SQUAWK_ARGS="--assume-in-transaction --config script/lib/squawk.toml"
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f "$SQUAWK_BIN" ]; then
|
if [ ! -f "$SQUAWK_BIN" ]; then
|
||||||
curl -L -o "$SQUAWK_BIN" "https://github.com/sbdchd/squawk/releases/download/v$SQUAWK_VERSION/squawk-darwin-x86_64"
|
curl -L -o "$SQUAWK_BIN" "https://github.com/sbdchd/squawk/releases/download/v$SQUAWK_VERSION/squawk-darwin-x86_64"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue