mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
* Update to Go 1.23 * Update bazel version * Update rules_go * Use toolchains_protoc * Update go_honnef_go_tools * Update golang.org/x/tools * Fix violations of SA3000 * Update errcheck by re-exporting the upstream repo * Remove problematic ginkgo and gomega test helpers. Rewrote tests without these test libraries. * Update go to 1.23.5 * gofmt with go1.23.5 * Revert Patch * Unclog * Update for go 1.23 support * Fix Lint Issues * Gazelle * Fix Build * Fix Lint * no lint * Fix lint * Fix lint * Disable intrange * Preston's review --------- Co-authored-by: Preston Van Loon <preston@pvl.dev>
90 lines
1.3 KiB
YAML
90 lines
1.3 KiB
YAML
run:
|
|
timeout: 10m
|
|
go: '1.23.5'
|
|
|
|
issues:
|
|
exclude-files:
|
|
- validator/web/site_data.go
|
|
- .*_test.go
|
|
exclude-dirs:
|
|
- proto
|
|
- tools/analyzers
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
# Deprecated linters:
|
|
- govet
|
|
|
|
# Disabled for now:
|
|
- asasalint
|
|
- bodyclose
|
|
- containedctx
|
|
- contextcheck
|
|
- cyclop
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- durationcheck
|
|
- errname
|
|
- err113
|
|
- exhaustive
|
|
- exhaustruct
|
|
- forbidigo
|
|
- forcetypeassert
|
|
- funlen
|
|
- gci
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- godot
|
|
- godox
|
|
- gofumpt
|
|
- gomoddirectives
|
|
- gosec
|
|
- inamedparam
|
|
- interfacebloat
|
|
- intrange
|
|
- ireturn
|
|
- lll
|
|
- maintidx
|
|
- makezero
|
|
- mnd
|
|
- musttag
|
|
- nakedret
|
|
- nestif
|
|
- nilnil
|
|
- nlreturn
|
|
- noctx
|
|
- nolintlint
|
|
- nonamedreturns
|
|
- nosprintfhostport
|
|
- perfsprint
|
|
- prealloc
|
|
- predeclared
|
|
- promlinter
|
|
- protogetter
|
|
- recvcheck
|
|
- revive
|
|
- spancheck
|
|
- staticcheck
|
|
- stylecheck
|
|
- tagalign
|
|
- tagliatelle
|
|
- thelper
|
|
- unparam
|
|
- varnamelen
|
|
- wrapcheck
|
|
- wsl
|
|
|
|
linters-settings:
|
|
gocognit:
|
|
# TODO: We should target for < 50
|
|
min-complexity: 65
|
|
|
|
output:
|
|
print-issued-lines: true
|
|
sort-results: true
|