cert-manager/.golangci.ci.yaml
Tim Ramlot 473c8337b2
replace deprecated NewCertManagerBasicCertificate function
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-02-20 08:40:38 +01:00

38 lines
1.6 KiB
YAML

# This golangci-lint configuration is for use in CI.
# It has a non-standard filename so that maintainers can still easily run the
# full `golangci-lint` suite locally on their laptops.
# This configuration limits golangci-lint to check only for those issues that
# have already been fixed. to allow us to incrementally fix the remaining
# issues.
# Please contribute small PRs where a new linter is added or a particular
# exclude is removed in the first commit, wait for golangci-lint-action to
# report the issues and then fix those issues in a subsequent commit.
linters:
disable-all: true
enable:
- gosec
- staticcheck
issues:
# When we enable a new linter or a new issue check, we want to show **all**
# instances of each issue in the GitHub UI or in the CLI report. This allows
# the all the issues to be addressed in a single commit or addressed in a
# series of followup commits grouped per-package or per-module.
# By default golangci-lint only shows 50 issues per linter and only shows the
# first three instances of any particular issue. Why? We do not know, but
# perhaps it's to avoid overwhelming the user when there are a large number of
# issues.
# The value 0 below means show all.
max-issues-per-linter: 0
max-same-issues: 0
# Ignore some of the gosec warnings until we have time to address them.
exclude-rules:
- linters:
- gosec
text: "G(101|107|204|306|402)"
- linters:
- staticcheck
text: "SA(1002|1006|4000|4006)"
- linters:
- staticcheck
text: "(NewCertManagerBasicCertificateRequest|DeprecatedCertificateTemplateFromCertificateRequestAndAllowInsecureCSRUsageDefinition)"