Skip to content

refactor!: code optimization as stricter linters are in place #698

refactor!: code optimization as stricter linters are in place

refactor!: code optimization as stricter linters are in place #698

Triggered via pull request May 14, 2024 22:42
Status Failure
Total duration 41s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
Lint: internal/service/scheduler/snapshot/staker_profit/staker_profit.go#L103
cognitive complexity 36 of func `(*server).saveStakerProfitSnapshots` is high (> 30) (gocognit)
Lint: internal/service/indexer/l2/indexer.go#L234
cognitive complexity 31 of func `(*server).indexBlock` is high (> 30) (gocognit)
Lint: internal/service/scheduler/snapshot/node_min_tokens_to_stake/node_min_tokens_to_stake.go#L98
cognitive complexity 33 of func `(*server).saveMinTokensToStakeSnapshots` is high (> 30) (gocognit)
Lint: internal/service/settler/server.go#L74
cognitive complexity 33 of func `(*Server).listenEpochEvent` is high (> 30) (gocognit)
Lint: internal/service/hub/handler/dsl/enforcer/enforcer.go#L402
commentFormatting: put a space between `//` and comment text (gocritic)
Lint
issues found
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.