Preparing report...

Report for github.com/xiazemin/autotest

A+    Excellent!    Found 9 issues across 19 files

Tweet

gofmt94%

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!


gocyclo94%

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.


golint57%

Golint is a linter for Go source code.

    • autotest/gotests/process/process.go
    • Line 24: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 41: warning: comment on exported function Run should be of the form "Run ..." (golint)
    • autotest/internal/output/output.go
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 38: warning: exported function Process should have comment or be unexported (golint)
    • Line 73: warning: exported function IsFileExist should have comment or be unexported (golint)
    • autotest/internal/models/models.go
    • Line 9: warning: exported type Expression should have comment or be unexported (golint)
    • Line 28: warning: exported type Field should have comment or be unexported (golint)
    • Line 36: warning: exported type InterfaceTypeInfo should have comment or be unexported (golint)
    • Line 44: warning: exported type MethodInfo should have comment or be unexported (golint)
    • Line 50: warning: exported method Field.IsWriter should have comment or be unexported (golint)
    • Line 54: warning: exported method Field.IsStruct should have comment or be unexported (golint)
    • Line 58: warning: exported method Field.IsBasicType should have comment or be unexported (golint)
    • Line 73: warning: exported method Field.IsNamed should have comment or be unexported (golint)
    • Line 77: warning: exported method Field.ShortName should have comment or be unexported (golint)
    • Line 81: warning: exported type Receiver should have comment or be unexported (golint)
    • Line 86: warning: exported type Interfaces should have comment or be unexported (golint)
    • Line 94: warning: exported type Function should have comment or be unexported (golint)
    • Line 104: warning: exported type Call should have comment or be unexported (golint)
    • Line 109: warning: exported method Function.TestParameters should have comment or be unexported (golint)
    • Line 120: warning: exported method Function.TestResults should have comment or be unexported (golint)
    • Line 140: warning: exported method Function.ReturnsMultiple should have comment or be unexported (golint)
    • Line 144: warning: exported method Function.OnlyReturnsOneValue should have comment or be unexported (golint)
    • Line 148: warning: exported method Function.OnlyReturnsError should have comment or be unexported (golint)
    • Line 152: warning: exported method Function.FullName should have comment or be unexported (golint)
    • Line 160: warning: exported method Function.TestName should have comment or be unexported (golint)
    • Line 177: warning: exported method Function.IsNaked should have comment or be unexported (golint)
    • Line 181: warning: exported type Import should have comment or be unexported (golint)
    • Line 187: warning: exported type Header should have comment or be unexported (golint)
    • Line 194: warning: exported type Path should have comment or be unexported (golint)
    • Line 196: warning: exported method Path.TestPath should have comment or be unexported (golint)
    • Line 203: warning: exported method Path.IsTestPath should have comment or be unexported (golint)
    • autotest/internal/render/render.go
    • Line 29: warning: exported function Reset should have comment or be unexported (golint)
    • Line 202: warning: exported function Header should have comment or be unexported (golint)
    • Line 210: warning: exported function TestFunction should have comment or be unexported (golint)
    • autotest/autotest/process/process.go
    • Line 23: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported function Run should be of the form "Run ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!