-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update Go version ====> 1.23.5 - Update golangci-lint => 1.63.4 - Update kube version ==> 1.32.1 - Enable more linter rules and fix the few style issues reported . Enable monthly dependabot checks Signed-off-by: Anders Eknert <[email protected]>
- Loading branch information
1 parent
6e575ce
commit d206c19
Showing
9 changed files
with
154 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,8 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
go-version: 1.23.5 | ||
- uses: golangci/[email protected] | ||
with: | ||
version: v1.57.2 | ||
version: v1.63.4 | ||
- run: go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,10 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
go-version: 1.23.5 | ||
- uses: golangci/[email protected] | ||
with: | ||
version: v1.57.2 | ||
skip-pkg-cache: true | ||
skip-build-cache: true | ||
version: v1.63.4 | ||
|
||
release-build-darwin-amd64: | ||
name: Release Build darwin/amd64 | ||
|
@@ -30,7 +28,7 @@ jobs: | |
- name: Download Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
go-version: 1.23.5 | ||
|
||
- name: Build darwin/amd64 | ||
run: make build-darwin-amd64 | ||
|
@@ -52,7 +50,7 @@ jobs: | |
- name: Download Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
go-version: 1.23.5 | ||
|
||
- name: Build darwin/arm64 | ||
run: make build-darwin-arm64 | ||
|
@@ -74,7 +72,7 @@ jobs: | |
- name: Download Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
go-version: 1.23.5 | ||
|
||
- name: Build linux/amd64 | ||
run: make build-linux-amd64 | ||
|
@@ -96,7 +94,7 @@ jobs: | |
- name: Download Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.2 | ||
go-version: 1.23.5 | ||
|
||
- name: Build windows/amd64 | ||
run: make build-windows-amd64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,52 @@ | ||
linters: | ||
enable-all: true | ||
disable: | ||
# annoying | ||
- forcetypeassert | ||
- gocyclo | ||
- nestif | ||
- gocognit | ||
- varnamelen | ||
- nonamedreturns | ||
- testpackage | ||
- goconst | ||
- gochecknoinits | ||
- gochecknoglobals | ||
- mnd | ||
- inamedparam | ||
- err113 | ||
- godox | ||
- exhaustruct | ||
- cyclop | ||
- ireturn | ||
- funlen | ||
- gomoddirectives # need replacements for wasip1 | ||
- exportloopref # deprecated | ||
- wrapcheck | ||
linters-settings: | ||
exhaustive: | ||
default-signifies-exhaustive: true | ||
|
||
run: | ||
timeout: 5m | ||
revive: | ||
rules: | ||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter | ||
- name: unused-parameter | ||
severity: warning | ||
disabled: false | ||
arguments: | ||
- allowRegex: "^_" | ||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-receiver | ||
- name: unused-receiver | ||
severity: warning | ||
disabled: false | ||
arguments: | ||
- allowRegex: "^_" | ||
gci: | ||
sections: | ||
- standard | ||
- default | ||
- blank | ||
- dot | ||
depguard: | ||
rules: | ||
main: | ||
deny: | ||
- pkg: "gopkg.in/yaml.v2" | ||
desc: use yaml.v3 only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
module github.com/anderseknert/kube-review | ||
|
||
go 1.22.0 | ||
|
||
toolchain go1.22.2 | ||
go 1.23.5 | ||
|
||
require ( | ||
github.com/spf13/cobra v1.8.0 | ||
k8s.io/api v0.30.0 | ||
k8s.io/apimachinery v0.30.0 | ||
k8s.io/client-go v0.30.0 | ||
github.com/spf13/cobra v1.8.1 | ||
k8s.io/api v0.32.1 | ||
k8s.io/apimachinery v0.32.1 | ||
k8s.io/client-go v0.32.1 | ||
) | ||
|
||
require ( | ||
github.com/go-logr/logr v1.4.1 // indirect | ||
github.com/fxamacker/cbor/v2 v2.7.0 // indirect | ||
github.com/go-logr/logr v1.4.2 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/google/gofuzz v1.2.0 // indirect | ||
github.com/google/uuid v1.3.0 // indirect | ||
github.com/google/uuid v1.6.0 // indirect | ||
github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
golang.org/x/net v0.23.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
github.com/x448/float16 v0.8.4 // indirect | ||
golang.org/x/net v0.34.0 // indirect | ||
golang.org/x/text v0.21.0 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
k8s.io/klog/v2 v2.120.1 // indirect | ||
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect | ||
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect | ||
sigs.k8s.io/yaml v1.3.0 // indirect | ||
k8s.io/klog/v2 v2.130.1 // indirect | ||
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect | ||
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect | ||
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect | ||
sigs.k8s.io/yaml v1.4.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.