mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
Merge pull request #7289 from guggero/disable-thelper-linter
lint: disable `thelper` linter
This commit is contained in:
commit
272ed415c2
3 changed files with 9 additions and 2 deletions
|
@ -179,6 +179,11 @@ linters:
|
||||||
|
|
||||||
# Disable nil check to allow returning multiple nil values.
|
# Disable nil check to allow returning multiple nil values.
|
||||||
- nilnil
|
- 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:
|
issues:
|
||||||
|
|
|
@ -301,7 +301,9 @@ certain large transactions](https://github.com/lightningnetwork/lnd/pull/7100).
|
||||||
adding a data migration functionality to `lndinit`.
|
adding a data migration functionality to `lndinit`.
|
||||||
|
|
||||||
* [`golangci-lint` will now check new code using additional
|
* [`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
|
* Update github actions to [check commits against the target base
|
||||||
branch](https://github.com/lightningnetwork/lnd/pull/7103) rather than just
|
branch](https://github.com/lightningnetwork/lnd/pull/7103) rather than just
|
||||||
|
|
|
@ -101,7 +101,7 @@ func TestEncodeDecodeTlv(t *testing.T) {
|
||||||
|
|
||||||
var testTlv, _ = hex.DecodeString("fd023104deadbeef")
|
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
|
var failureMessageBuffer bytes.Buffer
|
||||||
|
|
||||||
err := EncodeFailureMessage(&failureMessageBuffer, testFailure, 0)
|
err := EncodeFailureMessage(&failureMessageBuffer, testFailure, 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue