linter: remove unsupported linters from the codebase

This commit is contained in:
ziggie authored and yyforyongyu committed 2025-11-12 22:54:02 +08:00
1 parent 13e7a6e782
commit d2d56f2968
5 files changed
+4 -6

No files matched your search

@@ -41,7 +41,7 @@ func beforeMigrationFuncV11(t *testing.T, d *DB, invoices []Invoice) {
invoiceNum++ invoiceNum++
var buf bytes.Buffer var buf bytes.Buffer
err := serializeInvoiceLegacy(&buf, &invoice) // nolint:scopelint err := serializeInvoiceLegacy(&buf, &invoice)
if err != nil { if err != nil {
return err return err
} }
+1 -1
View File
@@ -1581,7 +1581,7 @@ func (i *InvoiceRegistry) notifyClients(hash lntypes.Hash,
// invoiceSubscriptionKit defines that are common to both all invoice // invoiceSubscriptionKit defines that are common to both all invoice
// subscribers and single invoice subscribers. // subscribers and single invoice subscribers.
type invoiceSubscriptionKit struct { type invoiceSubscriptionKit struct {
id uint32 // nolint:structcheck id uint32
// quit is a chan mouted to InvoiceRegistry that signals a shutdown. // quit is a chan mouted to InvoiceRegistry that signals a shutdown.
quit chan struct{} quit chan struct{}
-2
View File
@@ -423,8 +423,6 @@ func (b *blindedForwardTest) cleanup() {
// createRouteToBlinded queries for a route from alice to the blinded path // createRouteToBlinded queries for a route from alice to the blinded path
// provided. // provided.
//
//nolint:gomnd
func (b *blindedForwardTest) createRouteToBlinded(paymentAmt int64, func (b *blindedForwardTest) createRouteToBlinded(paymentAmt int64,
blindedPath *lnrpc.BlindedPaymentPath) *lnrpc.Route { blindedPath *lnrpc.BlindedPaymentPath) *lnrpc.Route {
+1 -1
View File
@@ -20,7 +20,7 @@ type Fee struct {
// type from a given TLV stream. // type from a given TLV stream.
func (l *Fee) Record() tlv.Record { func (l *Fee) Record() tlv.Record {
return tlv.MakeStaticRecord( return tlv.MakeStaticRecord(
FeeRecordType, l, 8, feeEncoder, feeDecoder, //nolint:gomnd FeeRecordType, l, 8, feeEncoder, feeDecoder,
) )
} }
+1 -1
View File
@@ -2964,7 +2964,7 @@ func getRealChannelID(chanIDIndexBkt kvdb.RBucket,
} }
chanIDBytes := chanIDIndexBkt.Get(dbIDBytes) chanIDBytes := chanIDIndexBkt.Get(dbIDBytes)
if len(chanIDBytes) != 32 { //nolint:gomnd if len(chanIDBytes) != 32 {
return nil, fmt.Errorf("channel ID not found") return nil, fmt.Errorf("channel ID not found")
} }