Skip to content

skip gocritic lint for ifElseChain #1542

skip gocritic lint for ifElseChain

skip gocritic lint for ifElseChain #1542

Triggered via push December 9, 2024 15:53
Status Failure
Total duration 1m 42s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests: nutanix/services/vmmv2/resource_nutanix_template_v2.go#L2782
ifElseChain: rewrite if-else to switch statement (gocritic)
tests: nutanix/services/vmmv2/resource_nutanix_template_v2.go#L361
typeSwitchVar: case 0 can benefit from type switch with assignment (gocritic)
tests: nutanix/services/vmmv2/resource_nutanix_vms_shutdown_action_v2.go#L93
ifElseChain: rewrite if-else to switch statement (gocritic)
tests: nutanix/services/volumesv2/resource_nutanix_volume_group_iscsi_client_v2.go#L339
captLocal: `IPv4I' should not be capitalized (gocritic)
tests: nutanix/services/volumesv2/resource_nutanix_volume_group_iscsi_client_v2.go#L356
captLocal: `IPv6I' should not be capitalized (gocritic)
tests: nutanix/services/prismv2/resource_nutanix_categories_v2.go#L211
`if` block ends with a `return` statement, so drop this `else` and outdent its block (golint)
tests: nutanix/services/networkingv2/data_source_nutanix_route_tables_v2.go#L129
var `aJson` should be `aJSON` (golint)
tests: nutanix/services/networkingv2/data_source_nutanix_route_tables_v2.go#L157
var `aJson` should be `aJSON` (golint)
tests: nutanix/services/networkingv2/resource_nutanix_routes_v2.go#L500
var `nextHopIpAddress` should be `nextHopIPAddress` (golint)
tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636