Skip to content

Adding linters in makefile and gha #9

Adding linters in makefile and gha

Adding linters in makefile and gha #9

Triggered via pull request October 10, 2023 05:28
Status Failure
Total duration 3m 20s
Artifacts

terraform-ci.yml

on: pull_request
Check Go formatting, linting, vetting using golangci-lint
36s
Check Go formatting, linting, vetting using golangci-lint
Check Go formatting, linting, vetting
1m 16s
Check Go formatting, linting, vetting
Check for forbidden words
8s
Check for forbidden words
Build
43s
Build
Go security
3m 8s
Go security
Generate
48s
Generate
Malware Scanner
1m 5s
Malware Scanner
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
Generate
Process completed with exit code 1.
Check Go formatting, linting, vetting using golangci-lint: mutexkv/mutexkv.go#L38
empty-lines: extra empty line at the end of a block (revive)
Check Go formatting, linting, vetting using golangci-lint: redfish/models/provider.go#L7
exported: comment on exported type ProviderConfig should be of the form "ProviderConfig ..." (with optional leading article) (revive)
Check Go formatting, linting, vetting using golangci-lint: redfish/models/provider.go#L13
exported: exported type RedfishServer should have comment or be unexported (revive)
Check Go formatting, linting, vetting using golangci-lint: redfish/models/power.go#L7
exported: exported type Power should have comment or be unexported (revive)
Check Go formatting, linting, vetting using golangci-lint: common/job_management.go#L64
add-constant: avoid magic numbers like '200', create a named constant for it (revive)
Check Go formatting, linting, vetting using golangci-lint: common/job_management.go#L24
line-length-limit: line is 109 characters, out of limit 100 (revive)
Check Go formatting, linting, vetting using golangci-lint: common/job_management.go#L31
line-length-limit: line is 190 characters, out of limit 100 (revive)
Check Go formatting, linting, vetting using golangci-lint: common/job_management.go#L40
line-length-limit: line is 106 characters, out of limit 100 (revive)
Check Go formatting, linting, vetting using golangci-lint: common/job_management.go#L42
line-length-limit: line is 106 characters, out of limit 100 (revive)
Check Go formatting, linting, vetting using golangci-lint: common/job_management.go#L65
line-length-limit: line is 101 characters, out of limit 100 (revive)