Enable golangci-lint (attempt 2) (#23517)
This time we are just using the Makefile command to see if that makes a difference ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
20ec920b71
Коммит
c7295b01e5
@@ -1,5 +1,5 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
timeout: 10m
|
||||
skip-dirs:
|
||||
- channels/store/storetest/mocks
|
||||
|
||||
|
||||
@@ -294,11 +294,11 @@ else
|
||||
endif
|
||||
|
||||
golangci-lint: ## Run golangci-lint on codebase
|
||||
@# Keep the version in sync with the command in .circleci/config.yml
|
||||
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
|
||||
|
||||
@echo Running golangci-lint
|
||||
$(GOBIN)/golangci-lint run ./...
|
||||
$(GOBIN)/golangci-lint run ./public/...
|
||||
ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||
ifneq ($(MM_NO_ENTERPRISE_LINT),true)
|
||||
$(GOBIN)/golangci-lint run $(BUILD_ENTERPRISE_DIR)/...
|
||||
@@ -415,7 +415,7 @@ ifeq ($(BUILD_ENTERPRISE_READY),true)
|
||||
endif
|
||||
endif
|
||||
|
||||
check-style: golangci-lint plugin-checker vet ## Runs style/lint checks
|
||||
check-style: plugin-checker vet golangci-lint ## Runs style/lint checks
|
||||
|
||||
|
||||
do-cover-file: ## Creates the test coverage report file.
|
||||
|
||||
Ссылка в новой задаче
Block a user