-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update golangci-lint configuration
Updates `golangci-lint` configuration. Signed-off-by: Ryan Johnson <[email protected]>
- Loading branch information
1 parent
d7712eb
commit 1352b98
Showing
1 changed file
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
issues: | ||
max-per-linter: 0 | ||
max-same-issues: 0 | ||
exclude: | ||
- SA4004 | ||
- SA1019 | ||
- G402 | ||
- G404 | ||
- G115 | ||
- GetOkExists | ||
# © Broadcom. All Rights Reserved. | ||
# The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
run: | ||
deadline: 30m | ||
# For more information about the golangci-lint configuration file, refer to: | ||
# https://golangci-lint.run/usage/configuration/ | ||
|
||
issues: | ||
exclude-rules: | ||
# Exclude staticcheck for some rules. | ||
- linters: [staticcheck] | ||
text: "G115|G402|G404|GetOkExists|SA1006|SA1019|SA4004|SA4006|SA4010|SA4017|SA5007|SA6005|SA9004" | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- misspell | ||
- errcheck | ||
- gofmt | ||
- unused | ||
- staticcheck | ||
- gosec | ||
- goimports | ||
- gosimple | ||
- govet | ||
- gosec | ||
- ineffassign | ||
- misspell | ||
- gosimple | ||
- staticcheck | ||
- ineffassign | ||
- unconvert | ||
- unused | ||
|
||
run: | ||
deadline: 30m | ||
|
||
output: | ||
formats: | ||
- format: colored-line-number | ||
|
||
linters-settings: | ||
errcheck: | ||
ignore: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close | ||
revive: | ||
rules: | ||
- name: unreachable-code | ||
- name: errorf | ||
- name: range | ||
- name: superfluous-else | ||
- name: var-declaration | ||
- name: duplicated-imports | ||
exclude-functions: | ||
- "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set" | ||
- "fmt:.*" | ||
- "io:Close" |