fix: change to new-from-rev master in lint action (#2448)
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Родитель
ad9c041e01
Коммит
f8e430f4a8
|
@ -26,6 +26,5 @@ jobs:
|
|||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.55.2
|
||||
args: --timeout=25m
|
||||
only-new-issues: true
|
||||
version: v1.55
|
||||
args: --new-from-rev=origin/master --config=.golangci.yml --timeout=25m
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
issues:
|
||||
max-same-issues: 0
|
||||
max-issues-per-linter: 0
|
||||
new-from-rev: origin/master
|
||||
linters:
|
||||
presets:
|
||||
- bugs
|
||||
|
|
2
Makefile
2
Makefile
|
@ -743,7 +743,7 @@ clean: ## Clean build artifacts.
|
|||
LINT_PKG ?= .
|
||||
|
||||
lint: $(GOLANGCI_LINT) ## Fast lint vs default branch showing only new issues.
|
||||
GOGC=20 $(GOLANGCI_LINT) run --new-from-rev master --timeout 10m -v $(LINT_PKG)/...
|
||||
GOGC=20 $(GOLANGCI_LINT) run --timeout 25m -v $(LINT_PKG)/...
|
||||
|
||||
lint-all: $(GOLANGCI_LINT) ## Lint the current branch in entirety.
|
||||
GOGC=20 $(GOLANGCI_LINT) run -v $(LINT_PKG)/...
|
||||
|
|
Загрузка…
Ссылка в новой задаче