multi: rename nolint:lll to nolint:ll
Find and replace all nolint instances refering to the `lll` linter and replace with `ll` which is the name of our custom version of the `lll` linter which can be used to ignore log lines during linting. The next commit will do the configuration of the custom linter and disable the default one.
This commit is contained in:
123 files changed
+286
-286
No files matched your search
@@ -838,7 +838,7 @@ func calcBlindedPathPolicies(relayInfo []*record.PaymentRelayInfo,
|
||||
)
|
||||
// Use the algorithms defined in BOLT 4 to calculate the accumulated
|
||||
// relay fees for the route:
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
// https://github.com/lightning/bolts/blob/db278ab9b2baa0b30cfe79fb3de39280595938d3/04-onion-routing.md?plain=1#L255
|
||||
for i := len(relayInfo) - 1; i >= 0; i-- {
|
||||
info := relayInfo[i]
|
||||
|
||||
@@ -375,7 +375,7 @@ func TestPadBlindedHopInfo(t *testing.T) {
|
||||
}
|
||||
|
||||
if test.existingPadding != nil {
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
padding := tlv.SomeRecordT(
|
||||
tlv.NewPrimitiveRecord[tlv.TlvType1](
|
||||
make([]byte, test.existingPadding[i]),
|
||||
|
||||
+1
-1
@@ -1307,7 +1307,7 @@ func processNodeForBlindedPath(g Graph, node route.Vertex,
|
||||
|
||||
// Process each channel peer to gather any paths that
|
||||
// lead to the peer.
|
||||
nextPaths, hasMoreChans, err := processNodeForBlindedPath( //nolint:lll
|
||||
nextPaths, hasMoreChans, err := processNodeForBlindedPath( //nolint:ll
|
||||
g, channel.OtherNode, supportsRouteBlinding,
|
||||
visited, restrictions,
|
||||
)
|
||||
|
||||
@@ -3517,7 +3517,7 @@ func TestLastHopPayloadSize(t *testing.T) {
|
||||
blindedPath := path.BlindedPath.BlindedHops
|
||||
blindedPoint := path.BlindedPath.BlindingPoint
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
finalHop = route.Hop{
|
||||
AmtToForward: tc.amount,
|
||||
OutgoingTimeLock: uint32(tc.finalHopExpiry),
|
||||
@@ -3527,7 +3527,7 @@ func TestLastHopPayloadSize(t *testing.T) {
|
||||
finalHop.BlindingPoint = blindedPoint
|
||||
}
|
||||
} else {
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
finalHop = route.Hop{
|
||||
AmtToForward: tc.amount,
|
||||
OutgoingTimeLock: uint32(tc.finalHopExpiry),
|
||||
|
||||
+1
-1
@@ -1874,7 +1874,7 @@ func outgoingFromIncoming(incomingAmt lnwire.MilliSatoshi,
|
||||
PPM := big.NewInt(1_000_000)
|
||||
|
||||
// The following discussion was contributed by user feelancer21, see
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
// https://github.com/feelancer21/lnd/commit/f6f05fa930985aac0d27c3f6681aada1b599162a.
|
||||
|
||||
// The incoming amount Ai based on the outgoing amount Ao is computed by
|
||||
|
||||
@@ -618,7 +618,7 @@ func TestSendPaymentErrorRepeatedFeeInsufficient(t *testing.T) {
|
||||
// We'll now modify the SendToSwitch method to return an error for the
|
||||
// outgoing channel to Son goku. This will be a fee related error, so
|
||||
// it should only cause the edge to be pruned after the second attempt.
|
||||
dispatcher, ok := ctx.router.cfg.Payer.(*mockPaymentAttemptDispatcherOld) //nolint:lll
|
||||
dispatcher, ok := ctx.router.cfg.Payer.(*mockPaymentAttemptDispatcherOld) //nolint:ll
|
||||
require.True(t, ok)
|
||||
|
||||
dispatcher.setPaymentResult(func(firstHop lnwire.ShortChannelID) (
|
||||
@@ -1300,7 +1300,7 @@ func TestUnknownErrorSource(t *testing.T) {
|
||||
// We'll modify the SendToSwitch method so that it simulates hop b as a
|
||||
// node that returns an unparsable failure if approached via the a->b
|
||||
// channel.
|
||||
dispatcher, ok := ctx.router.cfg.Payer.(*mockPaymentAttemptDispatcherOld) //nolint:lll
|
||||
dispatcher, ok := ctx.router.cfg.Payer.(*mockPaymentAttemptDispatcherOld) //nolint:ll
|
||||
require.True(t, ok)
|
||||
|
||||
dispatcher.setPaymentResult(func(firstHop lnwire.ShortChannelID) (
|
||||
@@ -1327,7 +1327,7 @@ func TestUnknownErrorSource(t *testing.T) {
|
||||
payment.paymentHash)
|
||||
|
||||
// Next we modify payment result to return an unknown failure.
|
||||
dispatcher, ok = ctx.router.cfg.Payer.(*mockPaymentAttemptDispatcherOld) //nolint:lll
|
||||
dispatcher, ok = ctx.router.cfg.Payer.(*mockPaymentAttemptDispatcherOld) //nolint:ll
|
||||
require.True(t, ok)
|
||||
|
||||
dispatcher.setPaymentResult(func(firstHop lnwire.ShortChannelID) (
|
||||
@@ -2571,19 +2571,19 @@ func TestSendToRouteTempFailure(t *testing.T) {
|
||||
func TestNewRouteRequest(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
source, err := route.NewVertexFromStr("0367cec75158a4129177bfb8b269cb586efe93d751b43800d456485e81c2620ca6")
|
||||
require.NoError(t, err)
|
||||
sourcePubkey, err := btcec.ParsePubKey(source[:])
|
||||
require.NoError(t, err)
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
v1, err := route.NewVertexFromStr("026c43a8ac1cd8519985766e90748e1e06871dab0ff6b8af27e8c1a61640481318")
|
||||
require.NoError(t, err)
|
||||
pubkey1, err := btcec.ParsePubKey(v1[:])
|
||||
require.NoError(t, err)
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
v2, err := route.NewVertexFromStr("03c19f0027ffbb0ae0e14a4d958788793f9d74e107462473ec0c3891e4feb12e99")
|
||||
require.NoError(t, err)
|
||||
pubkey2, err := btcec.ParsePubKey(v2[:])
|
||||
|
||||
Reference in new issue
Block a user