Skip to content

Determine existence before retrieving the permissions #41

Determine existence before retrieving the permissions

Determine existence before retrieving the permissions #41

Triggered via push February 21, 2025 15:20
Status Failure
Total duration 1m 10s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 8 warnings
Lint: internal/provider/resource/test/directory_resource_test.go#L73
string `testuser` has 8 occurrences, make it a constant (goconst)
Lint: internal/provider/resource/directory_resource.go#L210
cyclomatic complexity 28 of func `(*DirectoryResource).Read` is high (> 15) (gocyclo)
Lint: internal/provider/resource/file_resource.go#L226
cyclomatic complexity 27 of func `(*FileResource).Read` is high (> 15) (gocyclo)
Lint: internal/provider/resource/file_resource.go#L136
cyclomatic complexity 18 of func `(*FileResource).Create` is high (> 15) (gocyclo)
Lint: internal/provider/resource/directory_resource.go#L316
cyclomatic complexity 17 of func `(*DirectoryResource).Update` is high (> 15) (gocyclo)
Lint: internal/provider/resource/directory_resource.go#L131
cyclomatic complexity 17 of func `(*DirectoryResource).Create` is high (> 15) (gocyclo)
Lint: internal/provider/resource/file_resource.go#L329
cyclomatic complexity 16 of func `(*FileResource).Update` is high (> 15) (gocyclo)
Lint: internal/provider/data/directory_data_source.go#L222
hugeParam: req is heavy (104 bytes); consider passing it by pointer (gocritic)
Lint: internal/provider/data/file_data_source.go#L132
hugeParam: req is heavy (104 bytes); consider passing it by pointer (gocritic)
Lint: internal/provider/resource/directory_resource.go#L393
hugeParam: req is heavy (104 bytes); consider passing it by pointer (gocritic)
Test
Process completed with exit code 1.
Lint: internal/provider/ssh/ssh_pool.go#L14
exported: type name will be used as ssh.SSHPool by other packages, and that stutters; consider calling this Pool (revive)
Lint: internal/provider/ssh/ssh_block.go#L10
exported: type name will be used as ssh.SSHBlockModel by other packages, and that stutters; consider calling this BlockModel (revive)
Lint: internal/provider/ssh/ssh_block.go#L19
exported: func name will be used as ssh.SSHBlockSchema by other packages, and that stutters; consider calling this BlockSchema (revive)
Lint: internal/provider/ssh/ssh_block.go#L47
exported: func name will be used as ssh.SSHBlockDataSourceSchema by other packages, and that stutters; consider calling this BlockDataSourceSchema (revive)
Lint: internal/provider/ssh/ssh_client.go#L20
exported: type name will be used as ssh.SSHClient by other packages, and that stutters; consider calling this Client (revive)
Lint: internal/provider/ssh/ssh_client.go#L27
exported: type name will be used as ssh.SSHConfig by other packages, and that stutters; consider calling this Config (revive)
Lint
Cache not found for keys: setup-go-Linux-x64-ubuntu24-go-1.24.0-8f675ae23b2e3c8583c6c88787d772ea0947c8bc43481e42a4212c179c279167
Test
Cache not found for keys: setup-go-Linux-x64-ubuntu24-go-1.24.0-8f675ae23b2e3c8583c6c88787d772ea0947c8bc43481e42a4212c179c279167