Skip to content

Commit 66a14d9

Browse files
committed
[golangci] Remove superfluous notlint and checks
1 parent c0857da commit 66a14d9

File tree

20 files changed

+2
-19
lines changed

20 files changed

+2
-19
lines changed

WORKSPACE.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ defaultVariant:
4444
- "**/node_modules/**"
4545
config:
4646
go:
47-
lintCommand: ["sh", "-c", "golangci-lint run --disable govet,errcheck,typecheck,staticcheck,structcheck -e '.*declared but not used.*' --allow-parallel-runners --timeout 15m"]
47+
lintCommand: ["sh", "-c", "golangci-lint run --disable govet,errcheck,staticcheck --allow-parallel-runners --timeout 15m"]

gitpod-ws.code-workspace

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
"**/.git": true
161161
},
162162
"go.lintTool": "golangci-lint",
163+
"go.lintFlags": ["-disable", "govet,errcheck,staticcheck", "--allow-parallel-runners", "--timeout", "15m"],
163164
"gopls": {
164165
"allowModfileModifications": true
165166
},

install/installer/pkg/components/agent-smith/daemonset.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
2121
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset)
2222

23-
//nolint:typecheck
2423
configHash, err := common.ObjectHash(configmap(ctx))
2524
if err != nil {
2625
return nil, err

install/installer/pkg/components/blobserve/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
4747
hashObj = append(hashObj, objs...)
4848
}
4949

50-
//nolint:typecheck
5150
configHash, err := common.ObjectHash(hashObj, nil)
5251
if err != nil {
5352
return nil, err

install/installer/pkg/components/content-service/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
2121
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDeployment)
2222

23-
//nolint:typecheck
2423
configHash, err := common.ObjectHash(configmap(ctx))
2524
if err != nil {
2625
return nil, err

install/installer/pkg/components/docker-registry/secret.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package dockerregistry
66

77
import (
8-
//nolint:typecheck
98
"encoding/base64"
109
"encoding/json"
1110
"fmt"

install/installer/pkg/components/ide-metrics/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
2121
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDeployment)
2222

23-
//nolint:typecheck
2423
configHash, err := common.ObjectHash(configmap(ctx))
2524
if err != nil {
2625
return nil, err

install/installer/pkg/components/ide-service/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
3636
return nil, fmt.Errorf("%s: invalid container registry config", Component)
3737
}
3838

39-
//nolint:typecheck
4039
configHash, err := common.ObjectHash(configmap(ctx))
4140
if err != nil {
4241
return nil, err

install/installer/pkg/components/image-builder-mk3/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
5555
hashObj = append(hashObj, objs...)
5656
}
5757

58-
//nolint:typecheck
5958
configHash, err := common.ObjectHash(hashObj, nil)
6059
if err != nil {
6160
return nil, err

install/installer/pkg/components/openvsx-proxy/statefulset.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
2525
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaStatefulSet)
2626
// todo(sje): add redis
2727

28-
//nolint:typecheck
2928
configHash, err := common.ObjectHash(configmap(ctx))
3029
if err != nil {
3130
return nil, err

install/installer/pkg/components/proxy/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
9696
}
9797
}
9898

99-
//nolint:typecheck
10099
configHash, err := common.ObjectHash(hashObj, nil)
101100
if err != nil {
102101
return nil, err

install/installer/pkg/components/public-api-server/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const (
3030
)
3131

3232
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
33-
//nolint:typecheck
3433
configHash, err := common.ObjectHash(configmap(ctx))
3534
if err != nil {
3635
return nil, err

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
7272
hashObj = append(hashObj, objs...)
7373
}
7474

75-
//nolint:typecheck
7675
configHash, err := common.ObjectHash(hashObj, nil)
7776
if err != nil {
7877
return nil, err

install/installer/pkg/components/server/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
6666
},
6767
})
6868

69-
//nolint:typecheck
7069
configHash, err := common.ObjectHash(hashObj, nil)
7170
if err != nil {
7271
return nil, err

install/installer/pkg/components/spicedb/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
3535
return nil, errors.New("missing configuration for spicedb.secretRef")
3636
}
3737

38-
//nolint:typecheck//nolint:typecheck
3938
bootstrapVolume, bootstrapVolumeMount, bootstrapFiles, contentHash, err := getBootstrapConfig(ctx)
4039
if err != nil {
4140
return nil, fmt.Errorf("failed to get bootstrap config: %w", err)

install/installer/pkg/components/usage/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
6464
return nil
6565
})
6666

67-
//nolint:typecheck
6867
configHash, err := common.ObjectHash(configmap(ctx))
6968
if err != nil {
7069
return nil, err

install/installer/pkg/components/ws-daemon/daemonset.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
2323
cfg := ctx.Config
2424
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset)
2525

26-
//nolint:typecheck
2726
configHash, err := common.ObjectHash(configmap(ctx))
2827
if err != nil {
2928
return nil, err

install/installer/pkg/components/ws-manager-bridge/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
7676
},
7777
})
7878

79-
//nolint:typecheck
8079
configHash, err := common.ObjectHash(hashObj, nil)
8180
if err != nil {
8281
return nil, err

install/installer/pkg/components/ws-manager-mk2/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
2323
labels := common.DefaultLabels(Component)
2424

25-
//nolint:typecheck
2625
configHash, err := common.ObjectHash(configmap(ctx))
2726
if err != nil {
2827
return nil, err

install/installer/pkg/components/ws-proxy/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
2424
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDeployment)
2525

26-
//nolint:typecheck
2726
configHash, err := common.ObjectHash(configmap(ctx))
2827
if err != nil {
2928
return nil, err

0 commit comments

Comments
 (0)