pedroMMM/goss

View on GitHub
resource/resource.go

Summary

Maintainability
A
35 mins
Test Coverage

Function shouldSkip has 5 return statements (exceeds 4 allowed).
Open

func shouldSkip(results []TestResult) bool {
    if len(results) < 1 {
        return false
    }
    if results[0].Err != nil {
Severity: Major
Found in resource/resource.go - About 35 mins to fix

    exported type ResourceRead should have comment or be unexported
    Open

    type ResourceRead interface {
    Severity: Minor
    Found in resource/resource.go by golint

    exported type Resource should have comment or be unexported
    Open

    type Resource interface {
    Severity: Minor
    Found in resource/resource.go by golint

    type name will be used as resource.ResourceRead by other packages, and that stutters; consider calling this Read
    Open

    type ResourceRead interface {
    Severity: Minor
    Found in resource/resource.go by golint

    There are no issues that match your filters.

    Category
    Status