mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
- Update quasar BLS and GPU integration - Improve epoch and threshold management - Remove deprecated corona module - Update integration tests for chain engine - Enhance dynamic and dual threshold tests - CGO_ENABLED=1 default for GPU acceleration
63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
# golangci-lint v2 configuration
|
|
version: "2"
|
|
|
|
run:
|
|
timeout: 10m
|
|
tests: false
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- govet
|
|
- staticcheck
|
|
- ineffassign
|
|
- misspell
|
|
|
|
settings:
|
|
govet:
|
|
disable:
|
|
- shadow
|
|
staticcheck:
|
|
checks:
|
|
- "all"
|
|
- "-SA1019"
|
|
- "-QF1008" # embedded field selector (style suggestion)
|
|
- "-QF1012" # fmt.Fprintf instead of Write (style suggestion)
|
|
- "-ST1003" # ALL_CAPS naming (style)
|
|
- "-ST1005" # error string capitalization (style)
|
|
- "-ST1023" # omit type from declaration (style)
|
|
- "-QF1011" # omit type from declaration (style)
|
|
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
paths:
|
|
- vendor
|
|
- third_party
|
|
- testdata
|
|
- examples
|
|
- build
|
|
rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- staticcheck
|
|
- ineffassign
|
|
- path: test/
|
|
linters:
|
|
- staticcheck
|
|
- ineffassign
|
|
- path: cmd/
|
|
text: "Error return value of .* is not checked"
|
|
- text: "declaration of \"err\" shadows"
|
|
linters:
|
|
- govet
|
|
|
|
issues:
|
|
max-issues-per-linter: 50
|
|
max-same-issues: 10
|