mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-03 06:08:42 +00:00
Use golangci-lint to lint zerolog (#2524)
This commit is contained in:
parent
8791e64557
commit
7136ca1999
2 changed files with 1 additions and 7 deletions
|
@ -33,6 +33,7 @@ linters:
|
|||
- gofumpt
|
||||
- errorlint
|
||||
- forbidigo
|
||||
- zerologlint
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
|
|
7
Makefile
7
Makefile
|
@ -117,9 +117,6 @@ install-tools: ## Install development tools
|
|||
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
|
||||
fi ; \
|
||||
hash lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go install github.com/rs/zerolog/cmd/lint@latest; \
|
||||
fi ; \
|
||||
hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
go install mvdan.cc/gofumpt@latest; \
|
||||
fi ; \
|
||||
|
@ -139,10 +136,6 @@ ui-dependencies: ## Install UI dependencies
|
|||
lint: install-tools ## Lint code
|
||||
@echo "Running golangci-lint"
|
||||
golangci-lint run --timeout 15m
|
||||
@echo "Running zerolog linter"
|
||||
lint github.com/woodpecker-ci/woodpecker/cmd/agent
|
||||
lint github.com/woodpecker-ci/woodpecker/cmd/cli
|
||||
lint github.com/woodpecker-ci/woodpecker/cmd/server
|
||||
|
||||
lint-ui: ## Lint UI code
|
||||
(cd web/; pnpm install)
|
||||
|
|
Loading…
Reference in a new issue