Skip to content

Commit

Permalink
chore: no need of fmt or vet, already managed by golanci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
prometherion committed May 30, 2021
1 parent eaa59f7 commit 8a17bf7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ BUILD_DATE ?= $$(git log -1 --format="%at" | xargs -I{} date -d @{} +%Y-%m-
all: manager

# Run tests
test: generate fmt vet manifests
test: generate manifests
go test ./... -coverprofile cover.out

# Build manager binary
manager: generate fmt vet
go build -o bin/manager main.go

# Run against the configured Kubernetes cluster in ~/.kube/config
run: generate fmt vet manifests
run: generate manifests
go run ./main.go

# Install CRDs into a cluster
Expand All @@ -70,14 +70,6 @@ remove: manifests kustomize
manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases

# Run go fmt against code
fmt:
go fmt ./...

# Run go vet against code
vet:
go vet ./...

# Generate code
generate: controller-gen
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
Expand Down

0 comments on commit 8a17bf7

Please sign in to comment.