diff --git a/.golangci.yml b/.golangci.yml index 7b97fee00..40dca985e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -184,6 +184,10 @@ linters: # call t.Helper() within those functions, we lose the information where # exactly a test failed in the generated failure stack trace. - thelper + + # The linter is too aggressive and doesn't add much value since reviewers + # will also catch magic numbers that make sense to extract. + - gomnd issues: diff --git a/docs/release-notes/release-notes-0.16.0.md b/docs/release-notes/release-notes-0.16.0.md index 1146051de..563a8b23a 100644 --- a/docs/release-notes/release-notes-0.16.0.md +++ b/docs/release-notes/release-notes-0.16.0.md @@ -336,7 +336,8 @@ data. * [`golangci-lint` will now check new code using additional linters](https://github.com/lightningnetwork/lnd/pull/7064) and was [fine-tuned](https://github.com/lightningnetwork/lnd/pull/7289) to fit our - code style. + code style or to [disable annoying new + linters](https://github.com/lightningnetwork/lnd/pull/7335). * Update github actions to [check commits against the target base branch](https://github.com/lightningnetwork/lnd/pull/7103) rather than just