-
-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Labels
Description
Hi. We are using golangci-lint-action v2.5.1 with golangci-lint v1.38.0
When running golangci-lint in the Github actions it returns weird errors https://github.com/iotaledger/goshimmer/runs/2174488190
Running [/home/runner/golangci-lint-1.38.0-linux-amd64/golangci-lint run --out-format=github-actions --timeout=10m] in [] ...
Error: unlambda: replace `func(c echo.Context) error {
return ledgerstateAPI.GetTransaction(c)
}` with `ledgerstateAPI.GetTransaction` (gocritic)
Error: unlambda: replace `func(c echo.Context) error {
return ledgerstateAPI.GetTransactionMetadata(c)
}` with `ledgerstateAPI.GetTransactionMetadata` (gocritic)
Error: unlambda: replace `func(c echo.Context) error {
return ledgerstateAPI.GetTransactionAttachments(c)
}` with `ledgerstateAPI.GetTransactionAttachments` (gocritic)
Error: unlambda: replace `func(c echo.Context) error {
return ledgerstateAPI.GetOutput(c)
}` with `ledgerstateAPI.GetOutput` (gocritic)
Error: issues found
Ran golangci-lint in 24151ms
The problem is that the code from the alerts doesn't exist in the repository. And when I run golangci-lint locally I don't see any alerts as expected.
I tried to disable the cache in actions with skip-pkg-cache parameter, but it didn't help I see the same errors in the Github actions log, see https://github.com/iotaledger/goshimmer/runs/2174517258
hiromaily