Skip to content

ACP 77

ACP 77 #12

Triggered via pull request October 8, 2024 20:00
Status Failure
Total duration 6m 9s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 9 warnings
Lint: cmd/contractcmd/init_poa_validator_manager.go#L8
could not import github.com/ava-labs/avalanche-cli/cmd/blockchaincmd (-: # github.com/ava-labs/avalanche-cli/cmd/blockchaincmd
Lint: cmd/blockchaincmd/create.go#L53
syntax error: unexpected var, expected field name or embedded type
Lint: cmd/blockchaincmd/create.go#L61
syntax error: unexpected =, expected type
Lint: cmd/blockchaincmd/create.go#L62
syntax error: unexpected ) in struct type; possibly missing semicolon or newline or }) (typecheck)
Lint: cmd/keycmd/list.go#L10
could not import github.com/ava-labs/avalanche-cli/cmd/blockchaincmd (-: # github.com/ava-labs/avalanche-cli/cmd/blockchaincmd
Lint: cmd/blockchaincmd/create.go#L53
syntax error: unexpected var, expected field name or embedded type
Lint: cmd/blockchaincmd/create.go#L61
syntax error: unexpected =, expected type
Lint: cmd/blockchaincmd/create.go#L62
syntax error: unexpected ) in struct type; possibly missing semicolon or newline or }) (typecheck)
Lint: cmd/nodecmd/create.go#L22
could not import github.com/ava-labs/avalanche-cli/cmd/blockchaincmd (-: # github.com/ava-labs/avalanche-cli/cmd/blockchaincmd
Lint: cmd/blockchaincmd/create.go#L53
syntax error: unexpected var, expected field name or embedded type
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Lint: pkg/subnet/public.go#L122
unused-receiver: method receiver 'd' is not referenced in method's body, consider removing or renaming it as _ (revive)
Lint: pkg/subnet/public.go#L128
unused-receiver: method receiver 'd' is not referenced in method's body, consider removing or renaming it as _ (revive)
Lint: pkg/subnet/public.go#L863
early-return: if c { ... } else { ... return } can be simplified to if !c { ... return } ... (revive)
Lint: pkg/subnet/public.go#L123
unused-parameter: parameter 'message' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/subnet/public.go#L129
unused-parameter: parameter 'balance' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/subnet/public.go#L130
unused-parameter: parameter 'signer' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/subnet/public.go#L131
unused-parameter: parameter 'changeOwner' seems to be unused, consider removing or renaming it as _ (revive)
Lint: pkg/subnet/public.go#L132
unused-parameter: parameter 'message' seems to be unused, consider removing or renaming it as _ (revive)