Skip to content

Fix datasource

Fix datasource #19

Triggered via push October 1, 2024 08:41
Status Failure
Total duration 51s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

14 errors
test (macos-latest): fptcloud/dfke/resource_dfke.go#L518
`shrinked` is a misspelling of `shrunk` (misspell)
test (macos-latest): fptcloud/dfke/resource_dfke.go#L551
`shrinked` is a misspelling of `shrunk` (misspell)
test (macos-latest): fptcloud/dfke/datasource_dfke.go#L276
`(*datasourceDedicatedKubernetesEngine).findClusterUUID` - `ctx` is unused (unparam)
test (macos-latest): fptcloud/dfke/resource_dfke_state.go#L152
(*resourceDedicatedKubernetesEngineState).internalRead - result 0 (*terraform-provider-fptcloud/fptcloud/dfke.dedicatedKubernetesEngineReadResponse) is never used (unparam)
test (macos-latest): fptcloud/dfke/resource_dfke.go#L463
S1002: should omit comparison to bool constant, can be simplified to `e2` (gosimple)
test (macos-latest): fptcloud/dfke/resource_dfke_state.go#L169
S1002: should omit comparison to bool constant, can be simplified to `!data.IsRunning` (gosimple)
test (macos-latest): fptcloud/dfke/resource_dfke_state.go#L173
S1002: should omit comparison to bool constant, can be simplified to `data.IsRunning` (gosimple)
test (macos-latest): fptcloud/dfke/datasource_dfke.go#L51
S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
test (macos-latest): fptcloud/dfke/resource_dfke.go#L376
S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
test (macos-latest): fptcloud/mfke/datasource_mfke.go#L124
S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)
test (ubuntu-latest)
The job was canceled because "macos-latest" failed.
test (ubuntu-latest)
The operation was canceled.
test (windows-latest)
The job was canceled because "macos-latest" failed.
test (windows-latest)
The operation was canceled.