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
@@ -298,7 +298,7 @@ func (s *Server) ImportGraph(ctx context.Context,
|
||||
rpcEdge.ChanPoint, err)
|
||||
}
|
||||
|
||||
makePolicy := func(rpcPolicy *lnrpc.RoutingPolicy) *models.ChannelEdgePolicy { //nolint:lll
|
||||
makePolicy := func(rpcPolicy *lnrpc.RoutingPolicy) *models.ChannelEdgePolicy { //nolint:ll
|
||||
policy := &models.ChannelEdgePolicy{
|
||||
ChannelID: rpcEdge.ChannelId,
|
||||
LastUpdate: time.Unix(
|
||||
|
||||
@@ -519,7 +519,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
|
||||
finalCLTVDelta := uint32(cltvExpiryDelta)
|
||||
finalCLTVDelta += uint32(routing.BlockPadding)
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
paths, err := blindedpath.BuildBlindedPaymentPaths(
|
||||
&blindedpath.BuildBlindedPathCfg{
|
||||
FindRoutes: cfg.QueryBlindedRoutes,
|
||||
@@ -534,7 +534,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
|
||||
p *blindedpath.BlindedHopPolicy) (
|
||||
*blindedpath.BlindedHopPolicy, error) {
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
return blindedpath.AddPolicyBuffer(
|
||||
p, blindCfg.RoutePolicyIncrMultiplier,
|
||||
blindCfg.RoutePolicyDecrMultiplier,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
// options, while if able to be populated, the latter fields MUST also be
|
||||
// specified.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type Config struct {
|
||||
RoutingConfig
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ func (r *forwardInterceptor) resolveFromClient(
|
||||
outWireCustomRecords = fn.Some[lnwire.CustomRecords](cr)
|
||||
}
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
return r.htlcSwitch.Resolve(&htlcswitch.FwdResolution{
|
||||
Key: circuitKey,
|
||||
Action: htlcswitch.FwdActionResumeModified,
|
||||
|
||||
@@ -600,7 +600,7 @@ func (s *Server) probePaymentRequest(ctx context.Context, paymentRequest string,
|
||||
|
||||
// If the payment probe failed we only return the failure reason and
|
||||
// leave the probe result params unaltered.
|
||||
if resp.FailureReason != lnrpc.PaymentFailureReason_FAILURE_REASON_NONE { //nolint:lll
|
||||
if resp.FailureReason != lnrpc.PaymentFailureReason_FAILURE_REASON_NONE { //nolint:ll
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
@@ -786,7 +786,7 @@ func (s *Server) sendProbePayment(ctx context.Context,
|
||||
case lnrpc.Payment_FAILED:
|
||||
// Incorrect payment details point to a
|
||||
// successful probe.
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
if payment.FailureReason == lnrpc.PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS {
|
||||
return paymentDetails(payment)
|
||||
}
|
||||
@@ -1031,7 +1031,7 @@ func (s *Server) SetMissionControlConfig(ctx context.Context,
|
||||
req.Config.HopProbability,
|
||||
),
|
||||
AprioriWeight: float64(req.Config.Weight),
|
||||
CapacityFraction: routing.DefaultCapacityFraction, //nolint:lll
|
||||
CapacityFraction: routing.DefaultCapacityFraction, //nolint:ll
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ func TestIsLsp(t *testing.T) {
|
||||
bobExpensiveCopy.FeeProportionalMillionths = 1_000_000
|
||||
bobExpensiveCopy.CLTVExpiryDelta = bobHopHint.CLTVExpiryDelta - 1
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
lspTestCases := []struct {
|
||||
name string
|
||||
routeHints [][]zpay32.HopHint
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
// RoutingConfig contains the configurable parameters that control routing.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type RoutingConfig struct {
|
||||
// ProbabilityEstimatorType sets the estimator to use.
|
||||
ProbabilityEstimatorType string `long:"estimator" choice:"apriori" choice:"bimodal" description:"Probability estimator used for pathfinding." `
|
||||
@@ -48,7 +48,7 @@ type RoutingConfig struct {
|
||||
|
||||
// AprioriConfig defines parameters for the apriori probability.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type AprioriConfig struct {
|
||||
// HopProbability is the assumed success probability of a hop in a route
|
||||
// when no other information is available.
|
||||
@@ -73,7 +73,7 @@ type AprioriConfig struct {
|
||||
|
||||
// BimodalConfig defines parameters for the bimodal probability.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
type BimodalConfig struct {
|
||||
// Scale describes the scale over which channels still have some
|
||||
// liquidity left on both channel ends. A value of 0 means that we
|
||||
|
||||
@@ -199,7 +199,7 @@ var (
|
||||
// and the native enum cannot be renumbered because it is stored in the
|
||||
// watchtower and BreachArbitrator databases.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
allWitnessTypes = map[input.WitnessType]WitnessType{
|
||||
input.CommitmentTimeLock: WitnessType_COMMITMENT_TIME_LOCK,
|
||||
input.CommitmentNoDelay: WitnessType_COMMITMENT_NO_DELAY,
|
||||
|
||||
Reference in new issue
Block a user