Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Borrelli <steve@borrelli.org>
  • Loading branch information
stevendborrelli committed Nov 14, 2023
1 parent 20b2fce commit a0618e5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

DOCKER := docker
GO := go

GOLANGCI_VERSION := 1.55.2

test:
$(GO) test ./...

lint:
$(DOCKER) run --rm -v $(CURDIR):/app -v ~/.cache/golangci-lint/v$(GOLANGCI_VERSION):/root/.cache -w /app golangci/golangci-lint:v$(GOLANGCI_VERSION) golangci-lint run --fix

reviewable: test lint
3 changes: 2 additions & 1 deletion patches_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/pkg/errors"
"github.com/stevendborrelli/function-conditional-patch-and-transform/input/v1beta1"
extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/utils/ptr"
Expand All @@ -17,6 +16,8 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/test"

"github.com/crossplane/function-sdk-go/resource/composite"

"github.com/stevendborrelli/function-conditional-patch-and-transform/input/v1beta1"
)

func TestPatchApply(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions ready.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/crossplane/crossplane-runtime/pkg/errors"
"github.com/crossplane/crossplane-runtime/pkg/fieldpath"
"github.com/crossplane/crossplane-runtime/pkg/resource"

"github.com/stevendborrelli/function-conditional-patch-and-transform/input/v1beta1"
)

Expand Down

0 comments on commit a0618e5

Please sign in to comment.