-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathjustfile
More file actions
61 lines (46 loc) · 1.64 KB
/
Copy pathjustfile
File metadata and controls
61 lines (46 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
default:
@just --list
# Install Git hooks and migrate the old Gradle hook configuration.
hooks:
python3 scripts/onboarding.py hooks
# Check every project, including on a clean working tree.
lint: lint-jvm lint-rust lint-spa lint-recipes lint-go
# Apply formatters without updating API baselines.
format: format-jvm format-rust format-spa format-recipes format-go
# Kotlin formatting, static analysis, and public API compatibility.
lint-jvm:
./gradlew spotlessCheck detekt apiCheck
format-jvm:
./gradlew spotlessApply
# Deliberately update public API baselines; review the resulting diff.
api-dump:
./gradlew apiDump
# Reuse the server's native recipes.
lint-rust:
just --justfile server/stove-server/justfile fmt-check clippy
format-rust:
just --justfile server/stove-server/justfile fmt
# Install SPA dependencies after checkout or lockfile changes.
setup-spa:
npm --prefix server/stove-server/spa ci
lint-spa:
npm --prefix server/stove-server/spa run typecheck
npm --prefix server/stove-server/spa run check
format-spa:
npm --prefix server/stove-server/spa run format
lint-recipes:
./recipes/jvm/gradlew -p recipes/jvm spotlessCheck
format-recipes:
./recipes/jvm/gradlew -p recipes/jvm spotlessApply
lint-go:
#!/bin/sh
set -eu
unformatted=$(gofmt -l go/stove-kafka recipes/process/golang/go-showcase)
if [ -n "$unformatted" ]; then
printf 'Go files need formatting:\n%s\n' "$unformatted"
exit 1
fi
(cd go/stove-kafka && go vet ./...)
(cd recipes/process/golang/go-showcase && go vet ./...)
format-go:
gofmt -w go/stove-kafka recipes/process/golang/go-showcase