Skip to content

Commit

Permalink
some action fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fumigatus committed Dec 16, 2024
1 parent 7f1e6d7 commit 4ee9d6a
Show file tree
Hide file tree
Showing 46 changed files with 2,601 additions and 1,017 deletions.
15 changes: 8 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
run:
deadline: 10m

skip-files:
- "zz_\\..+\\.go$"


output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
formats: colored-line-number

linters-settings:
errcheck:
Expand All @@ -21,7 +20,7 @@ linters-settings:
# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*
exclude-functions: fmt:.*,io/ioutil:^Read.*

govet:
# report about shadowed variables
Expand Down Expand Up @@ -104,16 +103,16 @@ linters-settings:

linters:
enable:
- megacheck
- gosimple
- unused
- staticcheck
- govet
- gocyclo
- gocritic
- interfacer
- goconst
- goimports
- gofmt # We enable this as well as goimports for its simplify mode.
- prealloc
- golint
- unconvert
- misspell
- nakedret
Expand All @@ -125,6 +124,8 @@ linters:


issues:
exclude-files:
- "zz_\\..+\\.go$"
# Excluding configuration per-path and per-linter
exclude-rules:
# Exclude some linters from running on tests files.
Expand Down
1 change: 0 additions & 1 deletion apis/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Copyright 2021 Upbound Inc.
//go:generate bash -c "find ../internal/controller -type d -empty -delete"
//go:generate rm -rf ../examples-generated


// Run Upjet generator
//go:generate go run ../cmd/generator/main.go ..

Expand Down
80 changes: 72 additions & 8 deletions apis/tmc/v1alpha1/zz_akscluster_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4ee9d6a

Please sign in to comment.