Skip to content

Commit

Permalink
Unbreak CI after #3316 (#3348)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcy authored Sep 26, 2024
1 parent b8aeca1 commit fd749ca
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,26 @@ issues:
# G404 checks for use of the ordinary non-CPRNG.
path: private/buf/buflsp/progress.go
text: "G404:"
- linters:
- gosec
# G115 checks for use of truncating conversions.
path: private/buf/buflsp/file.go
text: "G115:"
- linters:
- gosec
# G115 checks for use of truncating conversions.
path: private/buf/buflsp/report.go
text: "G115:"
- linters:
- gosec
# G115 checks for use of truncating conversions.
path: private/buf/buflsp/server.go
text: "G115:"
- linters:
- gosec
# G115 checks for use of truncating conversions.
path: private/buf/buflsp/symbol.go
text: "G115:"
- linters:
- containedctx
# Type must implement an interface whose methods do not accept context. But this
Expand Down
3 changes: 1 addition & 2 deletions private/buf/buflsp/buflsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/bufbuild/buf/private/bufpkg/bufimage"
"github.com/bufbuild/buf/private/pkg/app/appext"
"github.com/bufbuild/buf/private/pkg/command"
"github.com/bufbuild/buf/private/pkg/pluginrpcutil"
"github.com/bufbuild/buf/private/pkg/storage"
"github.com/bufbuild/buf/private/pkg/storage/storageos"
"github.com/bufbuild/buf/private/pkg/tracing"
Expand Down Expand Up @@ -59,7 +58,7 @@ func Serve(
}

tracer := tracing.NewTracer(container.Tracer())
checkClient, err := bufcheck.NewClient(container.Logger(), tracer, pluginrpcutil.NewRunnerProvider(command.NewRunner()), bufcheck.ClientWithStderr(container.Stderr()))
checkClient, err := bufcheck.NewClient(container.Logger(), tracer, bufcheck.NewRunnerProvider(command.NewRunner()), bufcheck.ClientWithStderr(container.Stderr()))
if err != nil {
return nil, err
}
Expand Down
1 change: 0 additions & 1 deletion private/buf/buflsp/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ func (f *file) RunLints(ctx context.Context) bool {
lintConfig,
image,
bufcheck.WithPluginConfigs(workspace.PluginConfigs()...),
bufcheck.WithPluginsEnabled(),
)

if err == nil {
Expand Down

0 comments on commit fd749ca

Please sign in to comment.