Skip to content

Linter fixes

Linter fixes #1068

Triggered via pull request February 12, 2024 19:35
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/state_store_exit_test.go#L197
assignments should only be cuddled with other assignments (wsl)
Linter: consensus/polybft/validators_snapshot_test.go#L152
assignments should only be cuddled with other assignments (wsl)
Linter: consensus/polybft/validator/validator_set_delta_test.go#L87
assignments should only be cuddled with other assignments (wsl)
Linter: crypto/txsigner_london_berlin_test.go#L74
switch statements should only be cuddled with variables switched (wsl)
Linter: e2e/discovery_test.go#L86
ranges should only be cuddled with assignments used in the iteration (wsl)
Linter: e2e/discovery_test.go#L43
ranges should only be cuddled with assignments used in the iteration (wsl)
Linter: e2e/discovery_test.go#L54
only one cuddle assignment allowed before defer statement (wsl)
Linter: e2e/discovery_test.go#L58
only one cuddle assignment allowed before if statement (wsl)
Linter: e2e/discovery_test.go#L66
only one cuddle assignment allowed before if statement (wsl)
Linter: e2e/transaction_test.go#L51
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