From d2d56f2968b6f0c34cfb7dcbacfae486dd6cb1f8 Mon Sep 17 00:00:00 2001 From: ziggie Date: Mon, 15 Sep 2025 14:50:06 +0200 Subject: [PATCH] linter: remove unsupported linters from the codebase --- channeldb/migration_01_to_11/migration_11_invoices_test.go | 2 +- invoices/invoiceregistry.go | 2 +- itest/lnd_route_blinding_test.go | 2 -- lnwire/typed_fee.go | 2 +- watchtower/wtdb/client_db.go | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/channeldb/migration_01_to_11/migration_11_invoices_test.go b/channeldb/migration_01_to_11/migration_11_invoices_test.go index 55c188bd9..4098fe5a6 100644 --- a/channeldb/migration_01_to_11/migration_11_invoices_test.go +++ b/channeldb/migration_01_to_11/migration_11_invoices_test.go @@ -41,7 +41,7 @@ func beforeMigrationFuncV11(t *testing.T, d *DB, invoices []Invoice) { invoiceNum++ var buf bytes.Buffer - err := serializeInvoiceLegacy(&buf, &invoice) // nolint:scopelint + err := serializeInvoiceLegacy(&buf, &invoice) if err != nil { return err } diff --git a/invoices/invoiceregistry.go b/invoices/invoiceregistry.go index 8815bb374..6528c4b1c 100644 --- a/invoices/invoiceregistry.go +++ b/invoices/invoiceregistry.go @@ -1581,7 +1581,7 @@ func (i *InvoiceRegistry) notifyClients(hash lntypes.Hash, // invoiceSubscriptionKit defines that are common to both all invoice // subscribers and single invoice subscribers. type invoiceSubscriptionKit struct { - id uint32 // nolint:structcheck + id uint32 // quit is a chan mouted to InvoiceRegistry that signals a shutdown. quit chan struct{} diff --git a/itest/lnd_route_blinding_test.go b/itest/lnd_route_blinding_test.go index af2612d24..b6c7f102c 100644 --- a/itest/lnd_route_blinding_test.go +++ b/itest/lnd_route_blinding_test.go @@ -423,8 +423,6 @@ func (b *blindedForwardTest) cleanup() { // createRouteToBlinded queries for a route from alice to the blinded path // provided. -// -//nolint:gomnd func (b *blindedForwardTest) createRouteToBlinded(paymentAmt int64, blindedPath *lnrpc.BlindedPaymentPath) *lnrpc.Route { diff --git a/lnwire/typed_fee.go b/lnwire/typed_fee.go index 6b139f196..2a5c6b385 100644 --- a/lnwire/typed_fee.go +++ b/lnwire/typed_fee.go @@ -20,7 +20,7 @@ type Fee struct { // type from a given TLV stream. func (l *Fee) Record() tlv.Record { return tlv.MakeStaticRecord( - FeeRecordType, l, 8, feeEncoder, feeDecoder, //nolint:gomnd + FeeRecordType, l, 8, feeEncoder, feeDecoder, ) } diff --git a/watchtower/wtdb/client_db.go b/watchtower/wtdb/client_db.go index 6e6adacc0..9fa03a3c1 100644 --- a/watchtower/wtdb/client_db.go +++ b/watchtower/wtdb/client_db.go @@ -2964,7 +2964,7 @@ func getRealChannelID(chanIDIndexBkt kvdb.RBucket, } chanIDBytes := chanIDIndexBkt.Get(dbIDBytes) - if len(chanIDBytes) != 32 { //nolint:gomnd + if len(chanIDBytes) != 32 { return nil, fmt.Errorf("channel ID not found") }