@@ -51,7 +51,7 @@ linters:
5151 forbid :
5252 # Use private/pkg/thread.Parallelize
5353 - pattern : ^errgroup\.
54- # Use private/pkg /standard/xos/xexec
54+ # Use buf.build/go /standard/xos/xexec
5555 - pattern : ^exec\.Cmd$
5656 - pattern : ^exec\.Command$
5757 - pattern : ^exec\.CommandContext$
@@ -132,11 +132,6 @@ linters:
132132 # This is a legacy usage of os.Getwd we're not bothering to port yet.
133133 path : cmd/buf/internal/command/alpha/protoc/protoc_test.go
134134 text : os.Getwd
135- - linters :
136- - dogsled
137- # One function call doesn't care about most of the returned destructured values. The
138- # dogsled linter complains about it. (Value of this linter is unclear...)
139- path : cmd/buf/internal/command/curl/curl.go
140135 - linters :
141136 - forbidigo
142137 # This is a legacy usage of os.Getwd we're not bothering to port yet.
@@ -153,11 +148,6 @@ linters:
153148 # trip this off.
154149 path : private/buf/bufcli/env.go
155150 text : " G101:"
156- - linters :
157- - gosec
158- # G404 checks for use of the ordinary non-CPRNG.
159- path : private/buf/buflsp/progress.go
160- text : " G404:"
161151 - linters :
162152 - gosec
163153 # G115 checks for use of truncating conversions.
@@ -173,11 +163,6 @@ linters:
173163 # G115 checks for use of truncating conversions.
174164 path : private/buf/buflsp/image.go
175165 text : " G115:"
176- - linters :
177- - gosec
178- # G115 checks for use of truncating conversions.
179- path : private/buf/buflsp/report.go
180- text : " G115:"
181166 - linters :
182167 - gosec
183168 # G115 checks for use of truncating conversions.
@@ -262,43 +247,16 @@ linters:
262247 - containedctx
263248 # we actually want to embed a context here
264249 path : private/bufpkg/bufmodule/module_set_builder.go
265- - linters :
266- - containedctx
267- # we actually want to embed a context here
268- path : private/pkg/standard/xos/xexec/process.go
269250 - linters :
270251 - gochecknoinits
271252 # we actually want to use init here
272253 path : private/bufpkg/bufmodule/paths.go
273- - linters :
274- - forbidigo
275- # we want to use errgroup here
276- path : private/bufpkg/bufremoteplugin/bufremoteplugindocker/docker.go
277- text : use of `errgroup
278- - linters :
279- - forbidigo
280- # this is one of two files we want to allow exec.Cmd functions in
281- path : private/pkg/standard/xos/xexec/xexec.go
282- - linters :
283- - forbidigo
284- # this is one of two files we want to allow exec.Cmd functions in
285- path : private/pkg/standard/xos/xexec/process.go
286- - linters :
287- - gosec
288- # G204 checks that exec.Command is not called with non-constants.
289- path : private/pkg/standard/xos/xexec/xexec.go
290- text : " G204:"
291254 - linters :
292255 - gosec
293256 # We should be able to use net/http/cgi in a unit test, in addition the CVE mentions
294257 # only versions of go < 1.6.3 are affected.
295258 path : private/pkg/git/git_test.go
296259 text : " G504:"
297- - linters :
298- - wastedassign
299- # netrc/internal is a library largely copied in from an external repository with attribution.
300- # We try to make minimal edits.
301- path : private/pkg/netrc/internal/internal.go
302260 - linters :
303261 - forbidigo
304262 # We cache os.Getwd in osext, osext is the entrypoint.
@@ -309,23 +267,11 @@ linters:
309267 # We cache os.Getwd in osext, osext has a Chdir that clears the cache.
310268 path : private/pkg/osext/osext.go
311269 text : os.Chdir
312- - linters :
313- - forbidigo
314- # We're going to move xfilepath out.
315- path : private/pkg/standard/xpath/xfilepath/xfilepath.go
316- text : os.Getwd
317270 - linters :
318271 - gochecknoinits
319272 # protoencoding calls detrand.Disable via go:linkname and and init function. See the comments
320273 # in the file for more details.
321274 path : private/pkg/protoencoding/detrand.go
322- - linters :
323- - errcheck
324- # headers.go has casts with values from contexts that should fail if there
325- # is no error, but it would be very unidiomatic to return an error from
326- # the functions that do these casts, and we completely control the
327- # context values within this file
328- path : private/pkg/rpc/headers.go
329275 - linters :
330276 - forbidigo
331277 # we use os.Rename here to rename files in the same directory
@@ -337,37 +283,18 @@ linters:
337283 # connCtx is cancelled when the connection is done; the context lifetime is
338284 # tied to the struct, not passed per-call.
339285 path : private/buf/buflsp/buflsp.go
340- - linters :
341- - containedctx
342- # we actually want to embed a context here
343- path : private/pkg/transport/grpc/grpcclient/client_conn_provider.go
344286 - linters :
345287 - forbidigo
346288 # we actually want to use errgroup when starting an HTTP server
347289 path : private/pkg/transport/http/httpserver/httpserver.go
348290 - linters :
349291 - staticcheck
350292 text : " ST1005:"
351- - linters :
352- - gochecknoinits
353- # we actually want to use this init
354- path : private/usage/usage.go
355- - linters :
356- - staticcheck
357- # We deprecated all the definitions in plugin.proto but we still implement them.
358- text : buf/alpha/registry/v1alpha1/plugin.proto is marked as deprecated
359- - linters :
360- - staticcheck
361- # We deprecated all the definitions in generate.proto but we still implement them.
362- text : buf/alpha/registry/v1alpha1/generate.proto is marked as deprecated
363293 - linters :
364294 - staticcheck
365295 # This greatly simplifies creation of descriptors, and it's safe enough since
366296 # it's just test code.
367297 text : GetDeprecatedLegacyJsonFieldConflicts is deprecated
368- - linters :
369- - forcetypeassert
370- path : private/bufpkg/bufimage/source_retention_options_test\.go
371298 - linters :
372299 - paralleltest
373300 # The LsModules tests call chdir and cannot be parallelized.
@@ -476,12 +403,6 @@ linters:
476403 # to set the source path for the location, this operation should be safe.
477404 path : private/bufpkg/bufcheck/bufcheckserver/internal/buflintvalidate/predefined_rules.go
478405 text : " G115:"
479- - linters :
480- - govet
481- # We print command.Short to markdown, which is controlled and set by each command
482- # and should be considered safe.
483- path : private/bufpkg/bufcobra/markdown.go
484- text : " printf: non-constant format string in call to p"
485406 - linters :
486407 - gosec
487408 # This converts slice indexes in a FileDescriptorProto to int32,
0 commit comments