okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

Aly Raffaufrefactor(gleam): clean up code and enforce focused lint checksb585313

main
616 B26 linesraw
1#!/usr/bin/env bash
2# The default profile is the commit check; review and audit are opt-in.
3set -euo pipefail
4root="$(cd "$(dirname "$0")/.." && pwd)"
5project="$root"
6scratch=""
7trap 'if [[ -n "$scratch" ]]; then rm -rf "$scratch"; fi' EXIT
8profile=""
9case "${1:-}" in
10--review)
11  profile="glinter-review.toml"
12  shift
13  ;;
14--all)
15  profile="glinter-all.toml"
16  shift
17  ;;
18esac
19if [[ -n $profile ]]; then
20  scratch="$(mktemp -d)"
21  project="$scratch"
22  cp "$root/test/manual/$profile" "$project/gleam.toml"
23  ln -s "$root/src" "$project/src"
24  ln -s "$root/test" "$project/test"
25fi
26glinter --project "$project" "$@"