Skip to content

Commit

Permalink
chore: update golangci-lint configuration
Browse files Browse the repository at this point in the history
Updates `golangci-lint` configuration.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Jan 8, 2025
1 parent d7712eb commit 1352b98
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .golangci.yml
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"

0 comments on commit 1352b98

Please sign in to comment.