The config file format changed. The tool golangci-lint migrate was used to migrate the old config. However old comments and also the structure of the disabled linters was preserved. Moreover the new v2 version introduced new linters, we disable 3 of them because they are very noise and we do not really want to check for them: funcorder, noinlineerr, embeddedstructfieldcheck.
15 lines
781 B
YAML
15 lines
781 B
YAML
# We are using a custom linter which is built cloning the version of
|
|
# golangci-lint from source below(thats what `golangci-lint custom` does
|
|
# internally) and adding the custom linters defined in this file. This means
|
|
# that this is the defining version for the linter as a whole when it comes to
|
|
# linter rules for example.
|
|
# The version pinned in the tools `go.mod` file is just the version we use to
|
|
# build the custom linter which is different and does not affect the linter
|
|
# rules itself. Hence both versions should always be updated together.
|
|
#
|
|
# NOTE: We cannot use untagged versions here. Always update the linter in the
|
|
# tools `go.mod` file and here as well.
|
|
version: v2.4.0
|
|
plugins:
|
|
- module: 'github.com/lightningnetwork/lnd/tools/linters'
|
|
path: ./linters |