Skip to content

Commit 32fd839

Browse files
Merge pull request #371 from openshift-cherrypick-robot/cherry-pick-370-to-release-4.17
[release-4.17] OCPBUGS-43389: update goimports targets
2 parents f7fa87e + 9c9bd4e commit 32fd839

File tree

3 files changed

+15
-24
lines changed

3 files changed

+15
-24
lines changed

.golangci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
linters:
2+
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
3+
enable:
4+
# default linters
5+
- errcheck
6+
- gosimple
7+
- govet
8+
- ineffassign
9+
- staticcheck
10+
- unused
11+
# optional linters
12+
- goimports
13+

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ manifests:
5959
# Run go fmt against code
6060
.PHONY: fmt
6161
fmt:
62-
hack/goimports.sh
62+
go fmt ./...
6363

6464
# Run go vet against code
6565
.PHONY: vet
@@ -69,7 +69,7 @@ vet:
6969
# Run golangci-lint against code
7070
.PHONY: lint
7171
lint:
72-
( GOLANGCI_LINT_CACHE=$(PROJECT_DIR)/.cache $(GOLANGCI_LINT) run --timeout 10m )
72+
( GOLANGCI_LINT_CACHE=$(PROJECT_DIR)/.cache $(GOLANGCI_LINT) run --timeout 10m -v)
7373

7474
# Run go mod
7575
.PHONY: vendor

hack/goimports.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)