Skip to content

Commit 2c8bce8

Browse files
committed
[golangci] Remove superfluous notlint and checks
1 parent eee9fdc commit 2c8bce8

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

0 commit comments

Comments
 (0)