forked from stripe/pg-schema-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 617 Bytes
/
Makefile
File metadata and controls
32 lines (21 loc) · 617 Bytes
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
# Sort targets alphabetically.
.PHONY: code_gen format go_lint go_lint_fix go_mod_tidy lint multiline_sql_strings_lint_fix sqlc sql_lint sql_lint_fix vendor
code_gen: go_mod_tidy sqlc
go_lint:
golangci-lint run
go_lint_fix:
golangci-lint run --fix
go_mod_tidy:
go mod tidy
lint: go_lint multiline_sql_strings_lint_fix sql_lint
lint_fix: go_lint_fix multiline_sql_strings_lint_fix sql_lint_fix
multiline_sql_strings_lint_fix:
go run ./scripts/lint/multiline_sql_strings_lint.go --fix
sqlc:
cd internal/queries && sqlc generate
sql_lint:
sqlfluff lint
sql_lint_fix:
sqlfluff fix
vendor:
go mod vendor