mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
feat(formatting): add prettier-plugin-sh
This commit is contained in:
8
Makefile
8
Makefile
@@ -188,19 +188,23 @@ tests-integration: ## Run integration tests
|
||||
go test -tags=integration -v github.com/gotenberg/gotenberg/v8/test/integration
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Lint the code.
|
||||
lint: ## Lint codebase.
|
||||
#golangci-lint run
|
||||
npx prettier --check .
|
||||
|
||||
# go install mvdan.cc/gofumpt@latest
|
||||
# go install github.com/daixiang0/gci@latest
|
||||
.PHONY: fmt
|
||||
fmt: ## Format the code and "optimize" the dependencies
|
||||
fmt: ## Format codebase and "optimize" the dependencies
|
||||
gofumpt -l -w .
|
||||
gci write -s standard -s default -s "prefix(github.com/gotenberg/gotenberg/v8)" --skip-generated --skip-vendor --custom-order .
|
||||
npx prettier --write .
|
||||
go mod tidy
|
||||
|
||||
.PHONY: todo
|
||||
todo: ## Find TODOs in codebase.
|
||||
golangci-lint run --no-config --disable-all --enable godox
|
||||
|
||||
# go install golang.org/x/tools/cmd/godoc@latest
|
||||
.PHONY: godoc
|
||||
godoc: ## Run a webserver with Gotenberg godoc
|
||||
|
||||
Reference in New Issue
Block a user