Preparing report...

Report for github.com/httprunner/hrp

A+    Excellent!    Found 12 issues across 33 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!


gocyclo96%

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.


golint66%

Golint is a linter for Go source code.

    • hrp/boomer.go
    • Line 14: warning: comment on exported function Boom should be of the form "Boom ..." (golint)
    • Line 19: warning: exported function NewBoomer should have comment or be unexported (golint)
    • Line 26: warning: exported type Boomer should have comment or be unexported (golint)
    • Line 31: warning: exported method Boomer.SetDebug should have comment or be unexported (golint)
    • Line 36: warning: exported method Boomer.Run should have comment or be unexported (golint)
    • hrp/convert.go
    • Line 14: warning: exported method TestCase.ToTCase should have comment or be unexported (golint)
    • Line 24: warning: exported method TCase.Dump2JSON should have comment or be unexported (golint)
    • Line 40: warning: exported method TCase.Dump2YAML should have comment or be unexported (golint)
    • Line 107: warning: exported method TCase.ToTestCase should have comment or be unexported (golint)
    • Line 127: warning: exported var ErrUnsupportedFileExt should have comment or be unexported (golint)
    • Line 129: warning: exported method TestCasePath.ToTestCase should have comment or be unexported (golint)
    • Line 153: warning: exported method TestCasePath.ToTCase should have comment or be unexported (golint)
    • hrp/models.go
    • Line 3: warning: exported type EnumHTTPMethod should have comment or be unexported (golint)
    • Line 6: warning: exported const GET should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type TConfig should have comment or be unexported (golint)
    • Line 25: warning: exported type TRequest should have comment or be unexported (golint)
    • Line 37: warning: exported type TValidator should have comment or be unexported (golint)
    • Line 44: warning: exported type TStep should have comment or be unexported (golint)
    • Line 56: warning: comment on exported type TCase should be of the form "TCase ..." (with optional leading article) (golint)
    • Line 62: warning: comment on exported type IStep should be of the form "IStep ..." (with optional leading article) (golint)
    • Line 69: warning: exported type ITestCase should have comment or be unexported (golint)
    • Line 74: warning: comment on exported type TestCase should be of the form "TestCase ..." (with optional leading article) (golint)
    • Line 80: warning: exported method TestCase.ToTestCase should have comment or be unexported (golint)
    • Line 84: warning: exported type TestCasePath should have comment or be unexported (golint)
    • Line 88: warning: exported type TestCaseSummary should have comment or be unexported (golint)
    • Line 90: warning: exported type StepData should have comment or be unexported (golint)
    • hrp/runner.go
    • Line 12: warning: comment on exported function Run should be of the form "Run ..." (golint)
    • Line 17: warning: exported function NewRunner should have comment or be unexported (golint)
    • Line 25: warning: exported type Runner should have comment or be unexported (golint)
    • Line 31: warning: exported method Runner.WithTestingT should have comment or be unexported (golint)
    • Line 37: warning: exported method Runner.SetDebug should have comment or be unexported (golint)
    • Line 43: warning: exported method Runner.SetProxyUrl should have comment or be unexported (golint)
    • Line 49: warning: exported method Runner.Run should have comment or be unexported (golint)
    • Line 235: warning: exported method Runner.GetSummary should have comment or be unexported (golint)
    • hrp/version.go
    • Line 3: warning: exported const VERSION should have comment or be unexported (golint)
    • hrp/builtin/assertion.go
    • Line 10: warning: exported var Assertions should have comment or be unexported (golint)
    • Line 27: warning: exported function StartsWith should have comment or be unexported (golint)
    • Line 39: warning: exported function EndsWith should have comment or be unexported (golint)
    • Line 51: warning: exported function EqualLength should have comment or be unexported (golint)
    • hrp/builtin/function.go
    • Line 11: warning: exported var Functions should have comment or be unexported (golint)
    • Line 42: warning: exported function MD5 should have comment or be unexported (golint)
    • hrp/har2case/core.go
    • Line 18: warning: exported function NewHAR should have comment or be unexported (golint)
    • Line 24: warning: exported type HAR should have comment or be unexported (golint)
    • Line 30: warning: exported method HAR.GenJSON should have comment or be unexported (golint)
    • Line 41: warning: exported method HAR.GenYAML should have comment or be unexported (golint)
    • Line 144: warning: exported type TStep should have comment or be unexported (golint)
    • hrp/parser.go
    • Line 54: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 110: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hrp/response.go
    • Line 15: warning: exported function NewResponseObject should have comment or be unexported (golint)
    • Line 66: warning: exported type ResponseObject should have comment or be unexported (golint)
    • Line 72: warning: exported method ResponseObject.Extract should have comment or be unexported (golint)
    • Line 88: warning: exported method ResponseObject.Validate should have comment or be unexported (golint)
    • hrp/step.go
    • Line 5: warning: exported function Step 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!


misspell96%

Misspell Finds commonly misspelled English words