Preparing report...

Report for github.com/modern-go/test

A+    Excellent!    Found 17 issues across 27 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint44%

Golint is a linter for Go source code.

    • test/case.go
    • Line 12: warning: exported function Case should have comment or be unexported (golint)
    • Line 26: warning: exported function Skip should have comment or be unexported (golint)
    • Line 30: warning: exported function Skipf should have comment or be unexported (golint)
    • Line 34: warning: exported function CurrentT should have comment or be unexported (golint)
    • test/report.go
    • Line 11: warning: exported function ExtractFailedLines should have comment or be unexported (golint)
    • test/should/nil.go
    • Line 9: warning: exported function Nil should have comment or be unexported (golint)
    • Line 23: warning: exported function AssertNil should have comment or be unexported (golint)
    • Line 37: warning: exported function NotNil should have comment or be unexported (golint)
    • Line 51: warning: exported function AssertNotNil should have comment or be unexported (golint)
    • test/must/equal.go
    • Line 9: warning: comment on exported function Equal should be of the form "Equal ..." (golint)
    • Line 24: warning: comment on exported function NotEqual should be of the form "NotEqual ..." (golint)
    • Line 39: warning: comment on exported function AssertEqual should be of the form "AssertEqual ..." (golint)
    • test/must/pass.go
    • Line 9: warning: comment on exported function Assert should be of the form "Assert ..." (golint)
    • Line 24: warning: comment on exported function Pass should be of the form "Pass ..." (golint)
    • test/should/call.go
    • Line 10: warning: exported type ReturnValue should have comment or be unexported (golint)
    • Line 14: warning: exported function Call should have comment or be unexported (golint)
    • Line 42: warning: exported method ReturnValue.Set should have comment or be unexported (golint)
    • test/should/pass.go
    • Line 9: warning: comment on exported function Assert should be of the form "Assert ..." (golint)
    • Line 27: warning: comment on exported function Pass should be of the form "Pass ..." (golint)
    • test/must/call.go
    • Line 10: warning: exported type ReturnValue should have comment or be unexported (golint)
    • Line 14: warning: exported function Call should have comment or be unexported (golint)
    • Line 48: warning: exported method ReturnValue.Set should have comment or be unexported (golint)
    • test/should/equal.go
    • Line 9: warning: comment on exported function Equal should be of the form "Equal ..." (golint)
    • Line 24: warning: comment on exported function NotEqual should be of the form "NotEqual ..." (golint)
    • Line 39: warning: comment on exported function AssertEqual should be of the form "AssertEqual ..." (golint)
    • test/must/nil.go
    • Line 9: warning: exported function Nil should have comment or be unexported (golint)
    • Line 23: warning: exported function AssertNil should have comment or be unexported (golint)
    • Line 37: warning: exported function NotNil should have comment or be unexported (golint)
    • Line 51: warning: exported function AssertNotNil should have comment or be unexported (golint)

gocyclo92%

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.


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!