Skip to content

Adding linters in makefile and gha #8

Adding linters in makefile and gha

Adding linters in makefile and gha #8

Triggered via pull request October 10, 2023 03:51
Status Failure
Total duration 1m 44s
Artifacts

terraform-ci.yml

on: pull_request
Check Go formatting, linting, vetting using golangci-lint
1m 17s
Check Go formatting, linting, vetting using golangci-lint
Check Go formatting, linting, vetting
1m 33s
Check Go formatting, linting, vetting
Check for forbidden words
11s
Check for forbidden words
Build
37s
Build
Go security
1m 15s
Go security
Generate
59s
Generate
Malware Scanner
1m 28s
Malware Scanner
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
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: 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)
Check Go formatting, linting, vetting using golangci-lint: redfish/resource_redfish_simple_update.go#L181
cyclomatic: function updateRedfishSimpleUpdate has cyclomatic complexity 21 (> max enabled 20) (revive)
Check Go formatting, linting, vetting using golangci-lint: redfish/data_source_redfish_storage.go#L117
add-constant: avoid magic numbers like '10', create a named constant for it (revive)
Check Go formatting, linting, vetting using golangci-lint: redfish/resource_redfish_bios.go#L135
add-constant: string literal "attributes" appears, at least, 4 times, create a named constant for it (revive)