linter: remove unsupported linters from the codebase

This commit is contained in:
ziggie
2025-09-15 14:50:06 +02:00
committed by yyforyongyu
parent 13e7a6e782
commit d2d56f2968
5 changed files with 4 additions and 6 deletions

View File

@@ -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
}

View File

@@ -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{}

View File

@@ -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 {

View File

@@ -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,
)
}

View File

@@ -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")
}