Preparing report...

Report for github.com/layer5io/learn-layer5

A    Great!    Found 8 issues across 11 files

Tweet

gofmt81%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo90%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint27%

Golint is a linter for Go source code.

    • learn-layer5/service/main.go
    • Line 14: warning: exported type MetricsResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 41: warning: exported function MetricsMiddleware should have comment or be unexported (golint)
    • learn-layer5/smi-conformance/test-gen/service-mesh.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 22: warning: exported type Maesh should have comment or be unexported (golint)
    • Line 28: warning: exported method Maesh.SvcAGetInternalName should have comment or be unexported (golint)
    • Line 32: warning: exported method Maesh.SvcBGetInternalName should have comment or be unexported (golint)
    • Line 36: warning: exported method Maesh.SvcCGetInternalName should have comment or be unexported (golint)
    • Line 40: warning: exported method Maesh.SvcAGetPort should have comment or be unexported (golint)
    • Line 44: warning: exported method Maesh.SvcBGetPort should have comment or be unexported (golint)
    • Line 48: warning: exported method Maesh.SvcCGetPort should have comment or be unexported (golint)
    • Line 52: warning: exported type Linkerd should have comment or be unexported (golint)
    • Line 58: warning: exported method Linkerd.SvcAGetInternalName should have comment or be unexported (golint)
    • Line 62: warning: exported method Linkerd.SvcBGetInternalName should have comment or be unexported (golint)
    • Line 66: warning: exported method Linkerd.SvcCGetInternalName should have comment or be unexported (golint)
    • Line 70: warning: exported method Linkerd.SvcAGetPort should have comment or be unexported (golint)
    • Line 74: warning: exported method Linkerd.SvcBGetPort should have comment or be unexported (golint)
    • Line 78: warning: exported method Linkerd.SvcCGetPort should have comment or be unexported (golint)
    • Line 82: warning: exported type Istio should have comment or be unexported (golint)
    • Line 88: warning: exported method Istio.SvcAGetInternalName should have comment or be unexported (golint)
    • Line 92: warning: exported method Istio.SvcBGetInternalName should have comment or be unexported (golint)
    • Line 96: warning: exported method Istio.SvcCGetInternalName should have comment or be unexported (golint)
    • Line 100: warning: exported method Istio.SvcAGetPort should have comment or be unexported (golint)
    • Line 104: warning: exported method Istio.SvcBGetPort should have comment or be unexported (golint)
    • Line 108: warning: exported method Istio.SvcCGetPort should have comment or be unexported (golint)
    • Line 112: warning: exported type OSM should have comment or be unexported (golint)
    • Line 118: warning: exported method OSM.SvcAGetInternalName should have comment or be unexported (golint)
    • Line 122: warning: exported method OSM.SvcBGetInternalName should have comment or be unexported (golint)
    • Line 126: warning: exported method OSM.SvcCGetInternalName should have comment or be unexported (golint)
    • Line 130: warning: exported method OSM.SvcAGetPort should have comment or be unexported (golint)
    • Line 134: warning: exported method OSM.SvcBGetPort should have comment or be unexported (golint)
    • Line 138: warning: exported method OSM.SvcCGetPort should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!