lint: don't skip builtin
This commit is contained in:
parent
887249afee
commit
f5029a0187
@ -16,6 +16,12 @@ linters:
|
|||||||
- deadcode
|
- deadcode
|
||||||
- scopelint
|
- scopelint
|
||||||
|
|
||||||
|
# We don't want to skip builtin/
|
||||||
|
skip-dirs-use-default: false
|
||||||
|
skip-dirs:
|
||||||
|
- vendor$
|
||||||
|
- testdata$
|
||||||
|
- examples$
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -52,7 +52,7 @@ type PoStProof = proof0.PoStProof
|
|||||||
type FilterEstimate = smoothing0.FilterEstimate
|
type FilterEstimate = smoothing0.FilterEstimate
|
||||||
|
|
||||||
func FromV0FilterEstimate(v0 smoothing0.FilterEstimate) FilterEstimate {
|
func FromV0FilterEstimate(v0 smoothing0.FilterEstimate) FilterEstimate {
|
||||||
return (FilterEstimate)(v0)
|
return (FilterEstimate)(v0) //nolint:unconvert
|
||||||
}
|
}
|
||||||
|
|
||||||
// Doesn't change between actors v0, v2, and v3.
|
// Doesn't change between actors v0, v2, and v3.
|
||||||
|
@ -68,7 +68,7 @@ func (s *state0) ForEachPendingTxn(cb func(id int64, txn Transaction) error) err
|
|||||||
if n <= 0 {
|
if n <= 0 {
|
||||||
return xerrors.Errorf("invalid pending transaction key: %v", key)
|
return xerrors.Errorf("invalid pending transaction key: %v", key)
|
||||||
}
|
}
|
||||||
return cb(txid, (Transaction)(out))
|
return cb(txid, (Transaction)(out)) //nolint:unconvert
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ func (s *state2) ForEachPendingTxn(cb func(id int64, txn Transaction) error) err
|
|||||||
if n <= 0 {
|
if n <= 0 {
|
||||||
return xerrors.Errorf("invalid pending transaction key: %v", key)
|
return xerrors.Errorf("invalid pending transaction key: %v", key)
|
||||||
}
|
}
|
||||||
return cb(txid, (Transaction)(out))
|
return cb(txid, (Transaction)(out)) //nolint:unconvert
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ func (s *state3) ForEachPendingTxn(cb func(id int64, txn Transaction) error) err
|
|||||||
if n <= 0 {
|
if n <= 0 {
|
||||||
return xerrors.Errorf("invalid pending transaction key: %v", key)
|
return xerrors.Errorf("invalid pending transaction key: %v", key)
|
||||||
}
|
}
|
||||||
return cb(txid, (Transaction)(out))
|
return cb(txid, (Transaction)(out)) //nolint:unconvert
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user