Preparing report...

Report for github.com/devigned/apmz

A+    Excellent!    Found 2 issues across 30 files

Tweet

gofmt96%

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!


gocyclo100%

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.

No problems detected. Good job!


golint93%

Golint is a linter for Go source code.

    • apmz/tools/tools.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • apmz/internal/test/mocks.go
    • Line 15: warning: exported type ServiceMock should have comment or be unexported (golint)
    • Line 21: warning: exported type PrinterMock should have comment or be unexported (golint)
    • Line 25: warning: exported type APMMock should have comment or be unexported (golint)
    • Line 29: warning: exported type MetadataMock should have comment or be unexported (golint)
    • Line 34: warning: exported method ServiceMock.GetAPMer should have comment or be unexported (golint)
    • Line 39: warning: exported method ServiceMock.GetPrinter should have comment or be unexported (golint)
    • Line 44: warning: exported method ServiceMock.GetKeys should have comment or be unexported (golint)
    • Line 49: warning: exported method ServiceMock.GetMetadater should have comment or be unexported (golint)
    • Line 54: warning: exported method PrinterMock.Print should have comment or be unexported (golint)
    • Line 59: warning: exported method PrinterMock.Printf should have comment or be unexported (golint)
    • Line 63: warning: exported method PrinterMock.ErrPrintf should have comment or be unexported (golint)
    • Line 67: warning: exported method APMMock.Track should have comment or be unexported (golint)
    • Line 71: warning: exported method APMMock.Channel should have comment or be unexported (golint)
    • Line 76: warning: exported method MetadataMock.GetInstance should have comment or be unexported (golint)
    • Line 81: warning: exported method MetadataMock.GetAttestation should have comment or be unexported (golint)
    • Line 86: warning: exported method MetadataMock.GetScheduledEvents should have comment or be unexported (golint)
    • Line 91: warning: exported method MetadataMock.AckScheduledEvents should have comment or be unexported (golint)
    • Line 96: warning: exported method MetadataMock.GetIdentityToken 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!