Preparing report...

Report for github.com/Pallinder/go-randomdata

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


golint75%

Golint is a linter for Go source code.

    • go-randomdata/fullprofile.go
    • Line 17: warning: exported type Profile should have comment or be unexported (golint)
    • Line 59: warning: exported function RandStringRunes should have comment or be unexported (golint)
    • Line 87: warning: exported function GenerateProfile should have comment or be unexported (golint)
    • go-randomdata/random_data.go
    • Line 18: warning: exported const Male should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported const Small should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const FullCountry should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported const DateInputLayout should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported const ALPHANUMERIC should have comment or be unexported (golint)
    • Line 102: warning: exported function CustomRand should have comment or be unexported (golint)
    • Line 247: warning: exported function Decimal should have comment or be unexported (golint)
    • Line 263: warning: exported function StringNumberExt should have comment or be unexported (golint)
    • Line 304: warning: exported function Boolean should have comment or be unexported (golint)
    • Line 418: warning: exported function Timezone should have comment or be unexported (golint)
    • Line 422: warning: exported function Locale should have comment or be unexported (golint)
    • Line 426: warning: exported function UserAgentString should have comment or be unexported (golint)
    • Line 430: warning: exported function PhoneNumber should have comment or be unexported (golint)

gocyclo87%

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.


ineffassign87%

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!