Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
cache: false
- run: make check
env: { SKIP_LINT: true }
- uses: golangci/golangci-lint-action@v6
- uses: golangci/golangci-lint-action@v7
with: { version: "latest" }
- run: make cov
- uses: codecov/codecov-action@v5
Expand Down
67 changes: 42 additions & 25 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,58 @@
run: { timeout: 3m }

linters-settings:
cyclop:
max-complexity: 15
package-average: 0.5
skip-tests: false

govet: { enable-all: true }

misspell: { locale: US }

depguard:
rules:
main: { allow: ["$gostd", "github.com/BooleanCat/go-functional/v2"] }

version: "2"
linters:
disable-all: true
default: none
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- asasalint
- asciicheck
- bidichk
- decorder
- depguard
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- gochecknoglobals
- gocritic
- gocyclo
- gosec
- govet
- ineffassign
- misspell
- nilerr
- staticcheck
- unused
settings:
cyclop:
max-complexity: 15
package-average: 0.5
depguard:
rules:
main:
allow:
- $gostd
- github.com/BooleanCat/go-functional/v2
govet:
enable-all: true
misspell:
locale: US
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- gocyclo
- misspell
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$