forked from opentofu/opentofu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
34 lines (33 loc) · 1.12 KB
/
Copy path.golangci.yml
File metadata and controls
34 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (c) The OpenTofu Authors
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2023 HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
version: "2"
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
settings:
staticcheck:
# For now, we will disable some static checks to match golang-ci-lint@v1 functionality.
# These should be addressed once the --new-from-rev work is taken care of.
checks: ["all", "-QF1008", "-ST1003", "-ST1005", "-ST1012", "-ST1016"]
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
# We have a few patterns that are excluded from linting completely because
# they contain effectively-frozen code that we're preserving for backward
# compatibility, where changes would be risky and that risk isn't warranted
# since we don't expect to be doing any significant maintenence on these.
- ^internal/ipaddr/
- ^internal/legacy/
- ^internal/states/statefile/version\d+_upgrade\.go$
- ^website/
formatters:
exclusions:
generated: lax