Skip to content

Commit 2d42513

Browse files
committed
Update go module to sigs.k8s.io/kube-api-linter
1 parent 379949d commit 2d42513

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+104
-104
lines changed

.custom-gcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ version: v1.62.0
22
name: golangci-kal
33
destination: ./bin
44
plugins:
5-
- module: 'github.com/JoelSpeed/kal'
5+
- module: 'sigs.k8s.io/kube-api-linter'
66
path: ./

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ KAL currently comes in two flavours, a standalone binary, and a golangci-lint pl
1616
To install the standalone binary, run the following command:
1717

1818
```shell
19-
go install github.com/JoelSpeed/kal/cmd/kal@latest
19+
go install sigs.k8s.io/kube-api-linter/cmd/kal@latest
2020
```
2121

2222
The standalone binary can be run with the following command:
@@ -58,7 +58,7 @@ version: v1.62.0
5858
name: golangci-kal
5959
destination: ./bin
6060
plugins:
61-
- module: 'github.com/JoelSpeed/kal'
61+
- module: 'sigs.k8s.io/kube-api-linter'
6262
version: 'v0.0.0' # Replace with the latest version
6363
```
6464
@@ -101,7 +101,7 @@ The finer control over linter rules is not currently avaialable outside of the p
101101
If you wish to use the KAL linters in conjunction with other linters, you can enable the KAL linters in the `.golangci.yml` file by ensuring that `kal` is in the `linters.enabled` list.
102102
To provide further configuration, add the `custom.kal` section to your `linter-settings` as per the example above.
103103

104-
[golangci-config-struct]: https://pkg.go.dev/github.com/JoelSpeed/kal/pkg/config#GolangCIConfig
104+
[golangci-config-struct]: https://pkg.go.dev/sigs.k8s.io/kube-api-linter/pkg/config#GolangCIConfig
105105

106106
#### VSCode integration
107107

cmd/kal/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
kalanalysis "github.com/JoelSpeed/kal/pkg/analysis"
5-
"github.com/JoelSpeed/kal/pkg/config"
64
"golang.org/x/tools/go/analysis/multichecker"
5+
kalanalysis "sigs.k8s.io/kube-api-linter/pkg/analysis"
6+
"sigs.k8s.io/kube-api-linter/pkg/config"
77
)
88

99
func main() {

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Example `.golangci.yml` configuration file:
2929
enable:
3030
- kal
3131
32-
New linters can be added in the [github.com/JoelSpeed/kal/pkg/analysis] package.
32+
New linters can be added in the [sigs.k8s.io/kube-api-linter/pkg/analysis] package.
3333
*/
3434
package kal

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/JoelSpeed/kal
1+
module sigs.k8s.io/kube-api-linter
22

33
go 1.22.1
44

pkg/analysis/commentstart/analyzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"go/types"
99
"strings"
1010

11-
"github.com/JoelSpeed/kal/pkg/analysis/helpers/extractjsontags"
12-
"github.com/JoelSpeed/kal/pkg/analysis/helpers/inspector"
13-
"github.com/JoelSpeed/kal/pkg/analysis/helpers/markers"
1411
"golang.org/x/tools/go/analysis"
12+
"sigs.k8s.io/kube-api-linter/pkg/analysis/helpers/extractjsontags"
13+
"sigs.k8s.io/kube-api-linter/pkg/analysis/helpers/inspector"
14+
"sigs.k8s.io/kube-api-linter/pkg/analysis/helpers/markers"
1515
)
1616

1717
const name = "commentstart"

pkg/analysis/commentstart/analyzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package commentstart_test
33
import (
44
"testing"
55

6-
"github.com/JoelSpeed/kal/pkg/analysis/commentstart"
76
"golang.org/x/tools/go/analysis/analysistest"
7+
"sigs.k8s.io/kube-api-linter/pkg/analysis/commentstart"
88
)
99

1010
func Test(t *testing.T) {

pkg/analysis/commentstart/initializer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package commentstart
22

33
import (
4-
"github.com/JoelSpeed/kal/pkg/config"
54
"golang.org/x/tools/go/analysis"
5+
"sigs.k8s.io/kube-api-linter/pkg/config"
66
)
77

88
// Initializer returns the AnalyzerInitializer for this

pkg/analysis/conditions/analyzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import (
88
"slices"
99
"strings"
1010

11-
"github.com/JoelSpeed/kal/pkg/analysis/helpers/extractjsontags"
12-
"github.com/JoelSpeed/kal/pkg/analysis/helpers/markers"
13-
"github.com/JoelSpeed/kal/pkg/config"
1411
"golang.org/x/tools/go/analysis"
1512
"golang.org/x/tools/go/analysis/passes/inspect"
1613
"golang.org/x/tools/go/ast/inspector"
14+
"sigs.k8s.io/kube-api-linter/pkg/analysis/helpers/extractjsontags"
15+
"sigs.k8s.io/kube-api-linter/pkg/analysis/helpers/markers"
16+
"sigs.k8s.io/kube-api-linter/pkg/config"
1717
)
1818

1919
const (

pkg/analysis/conditions/analyzer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package conditions_test
33
import (
44
"testing"
55

6-
"github.com/JoelSpeed/kal/pkg/analysis/conditions"
7-
"github.com/JoelSpeed/kal/pkg/config"
86
"golang.org/x/tools/go/analysis/analysistest"
7+
"sigs.k8s.io/kube-api-linter/pkg/analysis/conditions"
8+
"sigs.k8s.io/kube-api-linter/pkg/config"
99
)
1010

1111
func TestDefaultConfiguration(t *testing.T) {

0 commit comments

Comments
 (0)