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
+1
-1
@@ -705,7 +705,7 @@ func (h *HarnessRPC) GetChanInfo(
|
||||
// LookupHtlcResolution makes a RPC call to the node's LookupHtlcResolution and
|
||||
// returns the response.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) LookupHtlcResolution(
|
||||
req *lnrpc.LookupHtlcResolutionRequest) *lnrpc.LookupHtlcResolutionResponse {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
// UpdateChanStatus makes a UpdateChanStatus RPC call to node's RouterClient
|
||||
// and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) UpdateChanStatus(
|
||||
req *routerrpc.UpdateChanStatusRequest) *routerrpc.UpdateChanStatusResponse {
|
||||
|
||||
@@ -76,7 +76,7 @@ func (h *HarnessRPC) SubscribeHtlcEvents() HtlcEventsClient {
|
||||
// GetMissionControlConfig makes a RPC call to the node's
|
||||
// GetMissionControlConfig and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) GetMissionControlConfig() *routerrpc.GetMissionControlConfigResponse {
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
defer cancel()
|
||||
@@ -142,7 +142,7 @@ func (h *HarnessRPC) SendToRouteV2(
|
||||
// QueryProbability makes a RPC call to the node's QueryProbability and
|
||||
// asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) QueryProbability(
|
||||
req *routerrpc.QueryProbabilityRequest) *routerrpc.QueryProbabilityResponse {
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ func (h *HarnessRPC) MuSig2CreateSessionErr(
|
||||
|
||||
// MuSig2CombineKeys makes a RPC call to the node's SignerClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) MuSig2CombineKeys(
|
||||
req *signrpc.MuSig2CombineKeysRequest) *signrpc.MuSig2CombineKeysResponse {
|
||||
|
||||
@@ -117,7 +117,7 @@ func (h *HarnessRPC) MuSig2CombineKeysErr(
|
||||
|
||||
// MuSig2RegisterNonces makes a RPC call to the node's SignerClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) MuSig2RegisterNonces(
|
||||
req *signrpc.MuSig2RegisterNoncesRequest) *signrpc.MuSig2RegisterNoncesResponse {
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ func (h *HarnessRPC) GetTransaction(
|
||||
// RemoveTransaction makes an RPC call to the node's WalletKitClient and
|
||||
// asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) RemoveTransaction(
|
||||
req *walletrpc.GetTransactionRequest) *walletrpc.RemoveTransactionResponse {
|
||||
|
||||
@@ -256,7 +256,7 @@ func (h *HarnessRPC) BumpFee(
|
||||
|
||||
// BumpForceCloseFee makes a RPC call to the node's WalletKitClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) BumpForceCloseFee(
|
||||
req *walletrpc.BumpForceCloseFeeRequest) *walletrpc.BumpForceCloseFeeResponse {
|
||||
|
||||
@@ -311,7 +311,7 @@ func (h *HarnessRPC) ImportAccountAssertErr(
|
||||
|
||||
// ImportPublicKey makes a RPC call to the node's WalletKitClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) ImportPublicKey(
|
||||
req *walletrpc.ImportPublicKeyRequest) *walletrpc.ImportPublicKeyResponse {
|
||||
|
||||
@@ -352,7 +352,7 @@ func (h *HarnessRPC) SignPsbtErr(req *walletrpc.SignPsbtRequest) error {
|
||||
|
||||
// ImportTapscript makes a RPC call to the node's WalletKitClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) ImportTapscript(
|
||||
req *walletrpc.ImportTapscriptRequest) *walletrpc.ImportTapscriptResponse {
|
||||
|
||||
@@ -367,7 +367,7 @@ func (h *HarnessRPC) ImportTapscript(
|
||||
|
||||
// RequiredReserve makes a RPC call to the node's WalletKitClient and asserts.
|
||||
//
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
func (h *HarnessRPC) RequiredReserve(
|
||||
req *walletrpc.RequiredReserveRequest) *walletrpc.RequiredReserveResponse {
|
||||
|
||||
|
||||
+2
-2
@@ -181,7 +181,7 @@ func NodeArgsForCommitType(commitType lnrpc.CommitmentType) []string {
|
||||
// function provides a simple way to allow test balance assertions to take fee
|
||||
// calculations into account.
|
||||
func CalcStaticFee(c lnrpc.CommitmentType, numHTLCs int) btcutil.Amount {
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
const (
|
||||
htlcWeight = input.HTLCWeight
|
||||
anchorSize = 330 * 2
|
||||
@@ -238,7 +238,7 @@ func CalculateMaxHtlc(chanCap btcutil.Amount) uint64 {
|
||||
// CalcStaticFeeBuffer calculates appropriate fee buffer which must be taken
|
||||
// into account when sending htlcs.
|
||||
func CalcStaticFeeBuffer(c lnrpc.CommitmentType, numHTLCs int) btcutil.Amount {
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
const (
|
||||
htlcWeight = input.HTLCWeight
|
||||
defaultSatPerVByte = lnwallet.DefaultAnchorsCommitMaxFeeRateSatPerVByte
|
||||
|
||||
Reference in new issue
Block a user