diff --git a/.golangci.yml b/.golangci.yml index f8eed63877..a68c350e3c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 diff --git a/private/buf/buflsp/buflsp.go b/private/buf/buflsp/buflsp.go index cc79544593..da572dfc11 100644 --- a/private/buf/buflsp/buflsp.go +++ b/private/buf/buflsp/buflsp.go @@ -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" @@ -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 } diff --git a/private/buf/buflsp/file.go b/private/buf/buflsp/file.go index 4f89cf2b0b..271b0e728c 100644 --- a/private/buf/buflsp/file.go +++ b/private/buf/buflsp/file.go @@ -568,7 +568,6 @@ func (f *file) RunLints(ctx context.Context) bool { lintConfig, image, bufcheck.WithPluginConfigs(workspace.PluginConfigs()...), - bufcheck.WithPluginsEnabled(), ) if err == nil {