lint: don't skip builtin

This commit is contained in:
Steven Allen 2021-03-25 17:17:46 -07:00
parent 887249afee
commit f5029a0187
5 changed files with 10 additions and 4 deletions

View File

@ -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:

View File

@ -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.

View File

@ -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
}) })
} }

View File

@ -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
}) })
} }

View File

@ -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
}) })
} }