feat: terminal ui rendering #354
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (5)
pkg/utils/utils.go|75 col 20| Error return value of progressBar.Stop
is not checked (errcheck)
pkg/utils/utils.go|56 col 10| do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf("download failed: %s", err)" (err113)
pkg/source/source.go|69 col 10| do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf("unsupported source type")" (err113)
pkg/source/source.go|199 col 10| do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf("unsupported hash length: %d", len(src.Hash))" (err113)
pkg/source/source.go|216 col 10| do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf("hash verification failed: %s", src.SourceItemPath)" (err113)
Filtered Findings (1)
pkg/project/project.go|347 col 35| the given struct should be annotated with the json
tag (musttag)
Annotations
Check failure on line 75 in pkg/utils/utils.go
github-actions / golangci
[golangci] pkg/utils/utils.go#L75
Error return value of `progressBar.Stop` is not checked (errcheck)
Raw output
pkg/utils/utils.go:75:20: Error return value of `progressBar.Stop` is not checked (errcheck)
progressBar.Stop()
^
Check failure on line 56 in pkg/utils/utils.go
github-actions / golangci
[golangci] pkg/utils/utils.go#L56
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"download failed: %s\", err)" (err113)
Raw output
pkg/utils/utils.go:56:10: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"download failed: %s\", err)" (err113)
return fmt.Errorf("download failed: %s", err)
^
Check failure on line 69 in pkg/source/source.go
github-actions / golangci
[golangci] pkg/source/source.go#L69
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unsupported source type\")" (err113)
Raw output
pkg/source/source.go:69:10: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unsupported source type\")" (err113)
return fmt.Errorf("unsupported source type")
^
Check failure on line 199 in pkg/source/source.go
github-actions / golangci
[golangci] pkg/source/source.go#L199
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unsupported hash length: %d\", len(src.Hash))" (err113)
Raw output
pkg/source/source.go:199:10: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unsupported hash length: %d\", len(src.Hash))" (err113)
return fmt.Errorf("unsupported hash length: %d", len(src.Hash))
^
Check failure on line 216 in pkg/source/source.go
github-actions / golangci
[golangci] pkg/source/source.go#L216
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"hash verification failed: %s\", src.SourceItemPath)" (err113)
Raw output
pkg/source/source.go:216:10: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"hash verification failed: %s\", src.SourceItemPath)" (err113)
return fmt.Errorf("hash verification failed: %s", src.SourceItemPath)
^