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
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
version: v1.55.2
|
version: v1.55
|
||||||
args: --timeout=25m
|
args: --new-from-rev=origin/master --config=.golangci.yml --timeout=25m
|
||||||
only-new-issues: true
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
issues:
|
issues:
|
||||||
max-same-issues: 0
|
max-same-issues: 0
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
|
new-from-rev: origin/master
|
||||||
linters:
|
linters:
|
||||||
presets:
|
presets:
|
||||||
- bugs
|
- bugs
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -743,7 +743,7 @@ clean: ## Clean build artifacts.
|
||||||
LINT_PKG ?= .
|
LINT_PKG ?= .
|
||||||
|
|
||||||
lint: $(GOLANGCI_LINT) ## Fast lint vs default branch showing only new issues.
|
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.
|
lint-all: $(GOLANGCI_LINT) ## Lint the current branch in entirety.
|
||||||
GOGC=20 $(GOLANGCI_LINT) run -v $(LINT_PKG)/...
|
GOGC=20 $(GOLANGCI_LINT) run -v $(LINT_PKG)/...
|
||||||
|
|
Загрузка…
Ссылка в новой задаче