Makefile: Run golangci-lint config verify
This more closely matches the behavior of the github action. In the .golangci.yml config file move the exclude-dirs list under issues where it belongs.
This commit is contained in:
parent
0256e09031
commit
06bc5d4d59
2 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,3 @@
|
|||
exclude-dirs:
|
||||
- vendor
|
||||
|
||||
linters-settings:
|
||||
govet:
|
||||
disable:
|
||||
|
|
@ -23,6 +20,9 @@ run:
|
|||
timeout: 5m
|
||||
|
||||
issues:
|
||||
exclude-dirs:
|
||||
- vendor
|
||||
|
||||
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
|
||||
max-issues-per-linter: 0
|
||||
|
||||
|
|
|
|||
1
Makefile
1
Makefile
|
|
@ -356,6 +356,7 @@ SHELLCHECK_FILES=$(shell find . -name "*.sh" -not -regex "./vendor/.*")
|
|||
.PHONY: lint
|
||||
lint: $(GOLANGCI_LINT_CACHE_DIR) container_composer_golangci_built.info
|
||||
./tools/prepare-source.sh
|
||||
podman run -t --rm -v $(SRCDIR):/app:z -v $(GOLANGCI_LINT_CACHE_DIR):/root/.cache:z -w /app $(GOLANGCI_COMPOSER_IMAGE) golangci-lint config verify -v
|
||||
podman run -t --rm -v $(SRCDIR):/app:z -v $(GOLANGCI_LINT_CACHE_DIR):/root/.cache:z -w /app $(GOLANGCI_COMPOSER_IMAGE) golangci-lint run -v
|
||||
echo "$(SHELLCHECK_FILES)" | xargs shellcheck --shell bash -e SC1091 -e SC2002 -e SC2317
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue