Skip to content

Linter fixes

Linter fixes #1067

Triggered via pull request February 12, 2024 19:30
Status Failure
Total duration 43s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Linter: consensus/polybft/extra_test.go#L380
assignments should only be cuddled with other assignments (wsl)
Linter: consensus/polybft/extra_test.go#L737
assignments should only be cuddled with other assignments (wsl)
Linter: consensus/polybft/governance_manager_test.go#L131
only cuddled expressions if assigning variable or using from line above (wsl)
Linter: consensus/polybft/state_store_epoch_test.go#L96
assignments should only be cuddled with other assignments (wsl)
Linter: consensus/polybft/state_store_state_sync_test.go#L233
only one cuddle assignment allowed before if statement (wsl)
Linter: consensus/polybft/validator/validator_metadata_test.go#L245
ranges should only be cuddled with assignments used in the iteration (wsl)
Linter: consensus/polybft/validator/validator_set_delta_test.go#L128
only one cuddle assignment allowed before range statement (wsl)
Linter: consensus/polybft/validator/validator_set_delta_test.go#L210
ranges should only be cuddled with assignments used in the iteration (wsl)
Linter: consensus/polybft/validator/validator_set_delta_test.go#L236
ranges should only be cuddled with assignments used in the iteration (wsl)
Linter: consensus/polybft/validator/validator_set_delta_test.go#L125
only one cuddle assignment allowed before range statement (wsl)
Linter
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: 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/.
Linter
Restore cache failed: Dependencies file is not found in /home/runner/work/blade/blade. Supported file pattern: go.sum