mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
lint: enable deprecation checks
Enable staticcheck's SA1019 check in golangci-lint so deprecated identifiers are caught in CI. Replace deprecated standard library and bbolt APIs with their current equivalents. Keep intentional compatibility reads and writes of deprecated Loop RPC fields behind narrow nolint annotations, because older clients and persisted liquidity parameters still depend on those fields.
This commit is contained in:
parent
d324b4bfd8
commit
5d8a5019cf
12 changed files with 42 additions and 52 deletions
|
|
@ -55,14 +55,16 @@ linters:
|
|||
- wsl_v5
|
||||
- noinlineerr
|
||||
settings:
|
||||
staticcheck:
|
||||
checks:
|
||||
- all
|
||||
- -QF*
|
||||
- -ST*
|
||||
gosec:
|
||||
excludes:
|
||||
- G402
|
||||
- G306
|
||||
- G115
|
||||
staticcheck:
|
||||
checks:
|
||||
- -SA1019
|
||||
tagliatelle:
|
||||
case:
|
||||
rules:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue