forked from bitdriftlabs/capture-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (34 loc) · 1.01 KB
/
Makefile
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
.PHONY: build
build:
echo "This command exists as CI expects BUILD command to be available"
.PHONY: ktlint
ktlint:
./bazelw query 'kind(ktlint_fix, //...)' | xargs -n1 ./bazelw run
.PHONY: rustfmt
rustfmt:
RUSTFMT_CONFIG=$(pwd)/rustfmt.toml ./bazelw run @rules_rust//:rustfmt
.PHONY: buildifier
buildifier:
buildifier -warnings all -lint=fix -r .
.PHONY: lint-swift
lint-swift:
./bazelw run tools/lint:lint
.PHONY: lint-yaml
lint-yaml:
taplo lint
.PHONY: fix-yaml
fix-yaml:
taplo fmt
.PHONY: fix-swift
fix-swift:
# tools/lint:fix doesn't warn about all docstring violations.
# For this reason format doc strings first (by running tools/lint:fix) and validate whether
# any doc string violations are left next (by running tools/lint:lint-docstrings).
./bazelw run tools/lint:fix && ./bazelw run tools/lint:lint-docstrings
.PHONY: format
format: ktlint rustfmt buildifier fix-swift lint-yaml
.PHONY: repin
repin:
CARGO_BAZEL_REPIN=1 ./bazelw sync --only=crate_index
.PHONY: push-additional-images
push-additional-images: