Skip to content

Commit

Permalink
[golangci] Remove superfluous notlint and checks
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Jan 16, 2025
1 parent c0857da commit 66a14d9
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ defaultVariant:
- "**/node_modules/**"
config:
go:
lintCommand: ["sh", "-c", "golangci-lint run --disable govet,errcheck,typecheck,staticcheck,structcheck -e '.*declared but not used.*' --allow-parallel-runners --timeout 15m"]
lintCommand: ["sh", "-c", "golangci-lint run --disable govet,errcheck,staticcheck --allow-parallel-runners --timeout 15m"]
1 change: 1 addition & 0 deletions gitpod-ws.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
"**/.git": true
},
"go.lintTool": "golangci-lint",
"go.lintFlags": ["-disable", "govet,errcheck,staticcheck", "--allow-parallel-runners", "--timeout", "15m"],
"gopls": {
"allowModfileModifications": true
},
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/agent-smith/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset)

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/blobserve/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
hashObj = append(hashObj, objs...)
}

//nolint:typecheck
configHash, err := common.ObjectHash(hashObj, nil)
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDeployment)

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/docker-registry/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package dockerregistry

import (
//nolint:typecheck
"encoding/base64"
"encoding/json"
"fmt"
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/ide-metrics/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDeployment)

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/ide-service/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
return nil, fmt.Errorf("%s: invalid container registry config", Component)
}

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
hashObj = append(hashObj, objs...)
}

//nolint:typecheck
configHash, err := common.ObjectHash(hashObj, nil)
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaStatefulSet)
// todo(sje): add redis

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/proxy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
}
}

//nolint:typecheck
configHash, err := common.ObjectHash(hashObj, nil)
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const (
)

func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
hashObj = append(hashObj, objs...)
}

//nolint:typecheck
configHash, err := common.ObjectHash(hashObj, nil)
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/server/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
},
})

//nolint:typecheck
configHash, err := common.ObjectHash(hashObj, nil)
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/spicedb/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
return nil, errors.New("missing configuration for spicedb.secretRef")
}

//nolint:typecheck//nolint:typecheck
bootstrapVolume, bootstrapVolumeMount, bootstrapFiles, contentHash, err := getBootstrapConfig(ctx)
if err != nil {
return nil, fmt.Errorf("failed to get bootstrap config: %w", err)
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/usage/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
return nil
})

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/ws-daemon/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
cfg := ctx.Config
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDaemonset)

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
},
})

//nolint:typecheck
configHash, err := common.ObjectHash(hashObj, nil)
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
labels := common.DefaultLabels(Component)

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion install/installer/pkg/components/ws-proxy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
labels := common.CustomizeLabel(ctx, Component, common.TypeMetaDeployment)

//nolint:typecheck
configHash, err := common.ObjectHash(configmap(ctx))
if err != nil {
return nil, err
Expand Down

0 comments on commit 66a14d9

Please sign in to comment.