Skip to content

Commit

Permalink
Update golangci-lint to 1.59.1 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkwarren committed Jun 25, 2024
1 parent 61bea3e commit 365d730
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
19 changes: 6 additions & 13 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
run:
skip-dirs-use-default: false
linters-settings:
errcheck:
check-type-assertions: true
Expand All @@ -24,36 +22,31 @@ linters-settings:
linters:
enable-all: true
disable:
- copyloopvar # enable once go 1.22 is baseline
- cyclop # covered by gocyclo
- deadcode # abandoned
- depguard # we can manage dependencies strictly if the need arises in the future
- exhaustivestruct # replaced by exhaustruct
- err113 # internal error causes may be dynamic
- execinquery # deprecated by author
- exhaustruct # don't _always_ need to exhaustively create struct
- funlen # rely on code review to limit function length
- gocognit # dubious "cognitive overhead" quantification
- gofumpt # prefer standard gofmt
- goerr113 # internal error causes may be dynamic
- goimports # rely on gci instead
- golint # deprecated by Go team
- gomnd # some unnamed constants are okay
- gomoddirectives # we use go modules replacements intentionally
- gomodguard # not compatible with go workspaces
- ifshort # deprecated by author
- interfacer # deprecated by author
- intrange # enable once go 1.22 is baseline
- ireturn # "accept interfaces, return structs" isn't ironclad
- lll # don't want hard limits for line length
- maintidx # covered by gocyclo
- maligned # readability trumps efficient struct packing
- mnd # some unnamed constants are okay
- nlreturn # generous whitespace violates house style
- nonamedreturns # usage of named returns should be selective
- nosnakecase # deprecated in https://github.com/golangci/golangci-lint/pull/3065
- scopelint # deprecated by author
- structcheck # abandoned
- testpackage # internal tests are fine
- varcheck # abandoned
- wrapcheck # don't _always_ need to wrap errors
- wsl # over-generous whitespace violates house style
issues:
exclude-use-default: true
exclude:
# we will continue to support the deprecated field until it's removed
- "IgnoreEmpty is deprecated"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LICENSE_IGNORE := -e internal/testdata/
# Set to use a different compiler. For example, `GO=go1.18rc1 make test`.
GO ?= go
ARGS ?= --strict --strict_message --strict_error
GOLANGCI_LINT_VERSION ?= v1.56.1
GOLANGCI_LINT_VERSION ?= v1.59.1
# Set to use a different version of protovalidate-conformance.
# Should be kept in sync with the version referenced in proto/buf.lock and
# 'buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go' in go.mod.
Expand Down
4 changes: 4 additions & 0 deletions celext/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func TestCELLib(t *testing.T) {
"[].unique()",
true,
},
{
"[true].unique()",
true,
},
{
"[true, false].unique()",
true,
Expand Down

0 comments on commit 365d730

Please sign in to comment.