mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
lnd v0.19.3-beta tapd v0.6.1 go 1.23.12 (except in tools/ where golangci-lint needs Go 1.24) Remove docs generators as cli-docs depends on Go 1.24.
131 lines
2.2 KiB
YAML
131 lines
2.2 KiB
YAML
version: "2"
|
|
run:
|
|
go: "1.23"
|
|
|
|
# timeout for analysis
|
|
timeout: 4m
|
|
|
|
linters:
|
|
default: all
|
|
disable:
|
|
- containedctx
|
|
- contextcheck
|
|
- cyclop
|
|
- depguard
|
|
- dogsled
|
|
- err113
|
|
- errname
|
|
- errorlint
|
|
- exhaustive
|
|
- exhaustruct
|
|
- forcetypeassert
|
|
- funlen
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- gocognit
|
|
- gocyclo
|
|
- godox
|
|
- gomoddirectives
|
|
- inamedparam
|
|
- interfacebloat
|
|
- intrange
|
|
- ireturn
|
|
- maintidx
|
|
- mnd
|
|
- nestif
|
|
- nilerr
|
|
- nilnil
|
|
- nlreturn
|
|
- noctx
|
|
- nolintlint
|
|
- paralleltest
|
|
- perfsprint
|
|
- prealloc
|
|
- protogetter
|
|
- revive
|
|
- tagalign
|
|
- testifylint
|
|
- testpackage
|
|
- thelper
|
|
- tparallel
|
|
- varnamelen
|
|
- wrapcheck
|
|
- wsl
|
|
- funcorder
|
|
- wsl_v5
|
|
- noinlineerr
|
|
settings:
|
|
gosec:
|
|
excludes:
|
|
- G402
|
|
- G306
|
|
- G115
|
|
staticcheck:
|
|
checks:
|
|
- -SA1019
|
|
tagliatelle:
|
|
case:
|
|
rules:
|
|
json: snake
|
|
whitespace:
|
|
multi-if: true
|
|
multi-func: true
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- forbidigo
|
|
- gosec
|
|
- unparam
|
|
path: _test\.go
|
|
- linters:
|
|
- gosec
|
|
path: _mock\.go
|
|
- linters:
|
|
- errcheck
|
|
- forbidigo
|
|
path: cmd/loopd/*
|
|
- linters:
|
|
- forbidigo
|
|
path: loopd/*
|
|
- linters:
|
|
- errcheck
|
|
- forbidigo
|
|
path: cmd/loop/*
|
|
- linters:
|
|
- forbidigo
|
|
path: fsm/stateparser/*
|
|
- linters:
|
|
- lll
|
|
path: loopd/config.go
|
|
- linters:
|
|
- lll
|
|
path: loopdb/*
|
|
paths:
|
|
- \.pb\.go$
|
|
- \.pb\.gw\.go$
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
issues:
|
|
new-from-rev: 36838cf7f464cf73b0201798063b2caffeae4250
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
gofmt:
|
|
simplify: true
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- \.pb\.go$
|
|
- \.pb\.gw\.go$
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|