Skip to content

Fix misbehaviour in resources and file permissions; Stabilize tests a… #43

Fix misbehaviour in resources and file permissions; Stabilize tests a…

Fix misbehaviour in resources and file permissions; Stabilize tests a… #43

Triggered via push February 21, 2025 17:54
Status Failure
Total duration 1m 16s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
Lint: internal/provider/resource/test/directory_resource_test.go#L65
string `testuser` has 8 occurrences, make it a constant (goconst)
Lint: internal/provider/resource/file_resource.go#L247
cyclomatic complexity 29 of func `(*FileResource).Read` is high (> 15) (gocyclo)
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#L136
cyclomatic complexity 22 of func `(*FileResource).Create` is high (> 15) (gocyclo)
Lint: internal/provider/resource/directory_resource.go#L316
cyclomatic complexity 20 of func `(*DirectoryResource).Update` is high (> 15) (gocyclo)
Lint: internal/provider/resource/file_resource.go#L363
cyclomatic complexity 19 of func `(*FileResource).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/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#L412
hugeParam: req is heavy (104 bytes); consider passing it by pointer (gocritic)
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_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_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