Skip to content

Commit

Permalink
Run gofmt with golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bhperry committed Sep 18, 2024
1 parent 980e2db commit 50d95a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
args: --timeout 3m --verbose
- name: Formatting
run: make format-check
args: --verbose
test:
name: Tests
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
run:
timeout: 5m
linters:
enable:
- gofmt
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ lint:
format:
@gofmt -l -w ./

format-check:
@if test -z $(gofmt -l ./); then gofmt -d ./; exit 1; fi

test: _test/kubebuilder-$(KUBEBUILDER_VERSION)-$(OS)-$(ARCH)/etcd _test/kubebuilder-$(KUBEBUILDER_VERSION)-$(OS)-$(ARCH)/kube-apiserver _test/kubebuilder-$(KUBEBUILDER_VERSION)-$(OS)-$(ARCH)/kubectl
TEST_ASSET_ETCD=_test/kubebuilder-$(KUBEBUILDER_VERSION)-$(OS)-$(ARCH)/etcd \
TEST_ASSET_KUBE_APISERVER=_test/kubebuilder-$(KUBEBUILDER_VERSION)-$(OS)-$(ARCH)/kube-apiserver \
Expand Down

0 comments on commit 50d95a3

Please sign in to comment.