Skip to content

Commit

Permalink
fix(ci): update build submodule and remove deprecated linters
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Dahlberg <[email protected]>
  • Loading branch information
somebadcode committed Feb 2, 2024
1 parent 947dabf commit 9797cbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 10m
timeout: 10m

skip-files:
- "zz_generated\\..+\\.go$"
Expand All @@ -23,14 +23,17 @@ linters-settings:
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*

revive:
# minimal confidence for issues, default is 0.8
confidence: 0.8
rules:
- name: package-comments
disabled: true

govet:
# report about shadowed variables
check-shadowing: false

golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8

gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
Expand Down Expand Up @@ -67,7 +70,7 @@ linters-settings:
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations
# with golangci-lint call it on a directory with the changed file.
check-exported: false
exported-is-used: false

unparam:
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
Expand Down Expand Up @@ -108,12 +111,11 @@ linters:
- govet
- gocyclo
- gocritic
- interfacer
- goconst
- goimports
- gofmt # We enable this as well as goimports for its simplify mode.
- prealloc
- golint
- revive
- unconvert
- misspell
- nakedret
Expand Down Expand Up @@ -189,7 +191,7 @@ issues:
new: false

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-per-linter: 0
max-issues-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
2 changes: 1 addition & 1 deletion build

0 comments on commit 9797cbf

Please sign in to comment.