Preparing report...

Report for github.com/jiusanzhou/surferua

A+    Excellent!    Found 8 issues across 19 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!


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.

    • surferua/surferua.go
    • Line 16: warning: exported function Seed should have comment or be unexported (golint)
    • Line 20: warning: exported const Mozilla should have comment or be unexported (golint)
    • Line 21: warning: exported const MozillaWithVersion should have comment or be unexported (golint)
    • Line 23: warning: exported type UserAgent should have comment or be unexported (golint)
    • Line 45: warning: exported function New should have comment or be unexported (golint)
    • surferua/util.go
    • Line 16: warning: exported function RandStringBytesMaskImpr should have comment or be unexported (golint)
    • Line 36: warning: exported function RandStringBytesMaskImprSrc should have comment or be unexported (golint)
    • surferua/browser.go
    • Line 33: warning: exported type BrowserInfo should have comment or be unexported (golint)
    • Line 39: warning: exported method BrowserInfo.Random should have comment or be unexported (golint)
    • Line 43: warning: exported function NewBrowserInfo should have comment or be unexported (golint)
    • Line 54: warning: exported function NewBrowserInfoList should have comment or be unexported (golint)
    • surferua/engine.go
    • Line 5: warning: exported type Engine should have comment or be unexported (golint)
    • Line 22: warning: exported type EngineInfo should have comment or be unexported (golint)
    • Line 27: warning: exported method EngineInfo.Random should have comment or be unexported (golint)
    • Line 34: warning: exported function NewEngineInfo should have comment or be unexported (golint)
    • surferua/platform.go
    • Line 11: warning: comment on exported type Platform should be of the form "Platform ..." (with optional leading article) (golint)
    • Line 48: warning: exported type PlatformInfo should have comment or be unexported (golint)
    • Line 59: warning: exported method PlatformInfo.Random should have comment or be unexported (golint)
    • Line 63: warning: exported function NewPlatformInfo should have comment or be unexported (golint)
    • Line 74: warning: exported function NewPlatformInfoList should have comment or be unexported (golint)
    • surferua/semver.go
    • Line 13: warning: exported type Semver should have comment or be unexported (golint)
    • Line 21: warning: exported type PreRelease should have comment or be unexported (golint)
    • Line 36: warning: exported type VersionInfo should have comment or be unexported (golint)
    • Line 42: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 47: warning: exported method VersionInfo.Random should have comment or be unexported (golint)
    • Line 59: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 134: warning: exported function NewVersionInfo 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!


misspell94%

Misspell Finds commonly misspelled English words