go 1.25 + upgrade containers by burmudar · Pull Request #1192 · sourcegraph/src-cli

@@ -1,59 +1,67 @@ # See explanation of linters at https://golangci-lint.run/usage/linters/ version: "2" linters: disable-all: true default: none enable: - bodyclose - depguard - gocritic - goimports - gosimple - govet - ineffassign - nolintlint - staticcheck - typecheck - unconvert - unused
linters-settings: depguard: settings: depguard: rules: main: deny: - pkg: errors desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead - pkg: github.com/pkg/errors desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead - pkg: github.com/cockroachdb/errors desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead - pkg: github.com/hashicorp/go-multierror desc: Use github.com/sourcegraph/sourcegraph/lib/errors instead - pkg: io/ioutil desc: The ioutil package has been deprecated forbidigo: forbid: - pattern: fmt\.Errorf gocritic: disabled-checks: - appendAssign - assignOp - commentFormatting - deprecatedComment - exitAfterDefer - ifElseChain - singleCaseSwitch govet: disable: - composites exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: main: deny: - pkg: "errors" desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" - pkg: "github.com/pkg/errors" desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" - pkg: "github.com/cockroachdb/errors" desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" - pkg: "github.com/hashicorp/go-multierror" desc: "Use github.com/sourcegraph/sourcegraph/lib/errors instead" - pkg: "io/ioutil" desc: "The ioutil package has been deprecated" gocritic: disabled-checks: - appendAssign # Too many false positives - assignOp # Maybe worth adding, but likely not worth the noise - commentFormatting # No strong benefit - deprecatedComment # Unnecessary - exitAfterDefer # Only occurs in auxiliary tools - ifElseChain # Noisy for not much gain - singleCaseSwitch # Noisy for not much gain govet: disable: - composites forbidigo: forbid: # Use errors.New instead - 'fmt\.Errorf'
issues: exclude-rules: # Exclude bodyclose lint from tests because leaking connections in tests # is a non-issue, and checking that adds unnecessary noise - path: _test\.go linters: - bodyclose
run: timeout: 5m - linters: - bodyclose path: _test\.go paths: - third_party$ - builtin$ - examples$ formatters: enable: - goimports exclusions: generated: lax paths: - third_party$ - builtin$ - examples$