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
@@ -147,7 +147,7 @@ func (c *ChannelUpdate2) DecodeTLVRecords(r io.Reader) error {
|
||||
// If the proportional fee was not encoded, then set it to the default
|
||||
// value.
|
||||
if _, ok := typeMap[c.FeeProportionalMillionths.TlvType()]; !ok {
|
||||
c.FeeProportionalMillionths.Val = defaultFeeProportionalMillionths //nolint:lll
|
||||
c.FeeProportionalMillionths.Val = defaultFeeProportionalMillionths //nolint:ll
|
||||
}
|
||||
|
||||
if len(tlvRecords) != 0 {
|
||||
|
||||
+1
-1
@@ -304,7 +304,7 @@ const (
|
||||
//
|
||||
// The base 32 encoded tagged fields in invoices are limited to 10 bits
|
||||
// to express the length of the field's data.
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
// See: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md#tagged-fields
|
||||
//
|
||||
// With a maximum length field of 1023 (2^10 -1) and 5 bit encoding,
|
||||
|
||||
@@ -592,7 +592,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
req.LeaseExpiry = new(LeaseExpiry)
|
||||
*req.LeaseExpiry = LeaseExpiry(1337)
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
req.LocalNonce = someLocalNonce[NonceRecordTypeT](r)
|
||||
} else {
|
||||
req.UpfrontShutdownScript = []byte{}
|
||||
@@ -667,7 +667,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
req.LeaseExpiry = new(LeaseExpiry)
|
||||
*req.LeaseExpiry = LeaseExpiry(1337)
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
req.LocalNonce = someLocalNonce[NonceRecordTypeT](r)
|
||||
} else {
|
||||
req.UpfrontShutdownScript = []byte{}
|
||||
@@ -749,7 +749,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
scid := NewShortChanIDFromInt(uint64(r.Int63()))
|
||||
req.AliasScid = &scid
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
req.NextLocalNonce = someLocalNonce[NonceRecordTypeT](r)
|
||||
}
|
||||
|
||||
@@ -794,7 +794,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
}
|
||||
|
||||
if r.Int31()%2 == 0 {
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
req.ShutdownNonce = someLocalNonce[ShutdownNonceType](r)
|
||||
}
|
||||
|
||||
@@ -994,7 +994,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
|
||||
// 50/50 chance to attach a local nonce.
|
||||
if r.Int31()%2 == 0 {
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
req.LocalNonce = someLocalNonce[NonceRecordTypeT](r)
|
||||
}
|
||||
|
||||
@@ -1202,7 +1202,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
req.LocalNonce = someLocalNonce[NonceRecordTypeT](r)
|
||||
}
|
||||
|
||||
@@ -1645,7 +1645,7 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
// Alternate between the two direction possibilities.
|
||||
if r.Int31()%2 == 0 {
|
||||
req.SecondPeer = tlv.SomeRecordT(
|
||||
tlv.ZeroRecordT[tlv.TlvType8, TrueBoolean](), //nolint:lll
|
||||
tlv.ZeroRecordT[tlv.TlvType8, TrueBoolean](), //nolint:ll
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ const (
|
||||
CodeExpiryTooFar FailCode = 21
|
||||
CodeInvalidOnionPayload = FlagPerm | 22
|
||||
CodeMPPTimeout FailCode = 23
|
||||
CodeInvalidBlinding = FlagBadOnion | FlagPerm | 24 //nolint:lll
|
||||
CodeInvalidBlinding = FlagBadOnion | FlagPerm | 24 //nolint:ll
|
||||
)
|
||||
|
||||
// String returns the string representation of the failure code.
|
||||
|
||||
@@ -39,7 +39,7 @@ type (
|
||||
|
||||
// BlindingPointRecord holds an optional blinding point on update add
|
||||
// htlc.
|
||||
//nolint:lll
|
||||
//nolint:ll
|
||||
BlindingPointRecord = tlv.OptionalRecordT[BlindingPointTlvType, *btcec.PublicKey]
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user