Merge pull request #7289 from guggero/disable-thelper-linter

lint: disable `thelper` linter
This commit is contained in:
Oliver Gugger 2023-01-05 15:40:39 +01:00 committed by GitHub
commit 272ed415c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -179,6 +179,11 @@ linters:
# Disable nil check to allow returning multiple nil values.
- nilnil
# We often split tests into separate test functions. If we are forced to
# call t.Helper() within those functions, we lose the information where
# exactly a test failed in the generated failure stack trace.
- thelper
issues:

View file

@ -301,7 +301,9 @@ certain large transactions](https://github.com/lightningnetwork/lnd/pull/7100).
adding a data migration functionality to `lndinit`.
* [`golangci-lint` will now check new code using additional
linters.](https://github.com/lightningnetwork/lnd/pull/7064)
linters](https://github.com/lightningnetwork/lnd/pull/7064) and was
[fine-tuned](https://github.com/lightningnetwork/lnd/pull/7289) to fit our
code style.
* Update github actions to [check commits against the target base
branch](https://github.com/lightningnetwork/lnd/pull/7103) rather than just

View file

@ -101,7 +101,7 @@ func TestEncodeDecodeTlv(t *testing.T) {
var testTlv, _ = hex.DecodeString("fd023104deadbeef")
func testEncodeDecodeTlv(t *testing.T, testFailure FailureMessage) { //nolint: lll,thelper
func testEncodeDecodeTlv(t *testing.T, testFailure FailureMessage) {
var failureMessageBuffer bytes.Buffer
err := EncodeFailureMessage(&failureMessageBuffer, testFailure, 0)