Skip to content

go: Fix more linter problems #42

go: Fix more linter problems

go: Fix more linter problems #42

Triggered via pull request June 20, 2024 13:01
Status Failure
Total duration 2m 24s
Artifacts

golang.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 5 warnings
golangci-lint: cmd/soroban-rpc/internal/config/option.go#L102
unused-parameter: parameter 'option' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: cmd/soroban-rpc/internal/config/options.go#L59
unused-parameter: parameter 'co' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: cmd/soroban-rpc/internal/config/options.go#L105
unused-parameter: parameter 'option' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: cmd/soroban-rpc/internal/config/options.go#L133
unused-parameter: parameter 'option' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: cmd/soroban-rpc/internal/config/options.go#L258
unused-parameter: parameter 'co' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: cmd/soroban-rpc/internal/config/options.go#L280
unused-parameter: parameter 'co' seems to be unused, consider removing or renaming it as _ (revive)
golangci-lint: cmd/soroban-rpc/internal/config/flags.go#L103
calculated cyclomatic complexity for function GetFlag is 25, max is 15 (cyclop)
golangci-lint: cmd/soroban-rpc/internal/methods/get_ledger_entries.go#L15
ErrLedgerTTLEntriesCannotBeQueriedDirectly is a global variable (gochecknoglobals)
golangci-lint
issues found
golangci-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b, actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
golangci-lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
golangci-lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
golangci-lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
golangci-lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/