Bound the cachedStates cache #18382
Annotations
10 errors
|
Run lint
Process completed with exit code 2.
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L91
Function TestCandidateStates_BoundedSize missing the call to method parallel (paralleltest)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L32
Function TestCandidateStates_BasicOperations missing the call to method parallel (paralleltest)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L101
for loop can be changed to use an integer range (Go 1.22+) (intrange)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L95
for loop can be changed to use an integer range (Go 1.22+) (intrange)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L104
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L86
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L81
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L61
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
|
Run lint:
consensus/cometbft/service/cache/cache_test.go#L49
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
Loading