Preparing report...

Report for github.com/tinygg/gofaker

A+    Excellent!    Found 22 issues across 102 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!


golint89%

Golint is a linter for Go source code.

    • gofaker/doc.go
    • Line 1: warning: package comment should be of the form "Package gofaker ..." (golint)
    • gofaker/data/locale.go
    • Line 3: warning: exported type Locale should have comment or be unexported (golint)
    • Line 6: warning: exported const ZH_CN should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var LOCALE should have comment or be unexported (golint)
    • Line 25: warning: exported function SetLocale should have comment or be unexported (golint)

gocyclo91%

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.

    • gofaker/generate.go
    • Line 96: warning: cyclomatic complexity 41 of function regexGenerate() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 16 of function Map() is high (> 15) (gocyclo)
    • gofaker/image.go
    • Line 49: warning: cyclomatic complexity 19 of function addImageLookup() is high (> 15) (gocyclo)
    • gofaker/xml.go
    • Line 130: warning: cyclomatic complexity 23 of function XML() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 16 of function xmlMapLoop() is high (> 15) (gocyclo)

ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • gofaker/data/person/en_US/person.go
    • Line 7: warning: "Ceasar" is a misspelling of "Caesar" (misspell)
    • Line 7: warning: "Destiney" is a misspelling of "Destiny" (misspell)
    • Line 7: warning: "Guiseppe" is a misspelling of "Giuseppe" (misspell)
    • Line 7: warning: "Maybelle" is a misspelling of "Maybelline" (misspell)
    • Line 7: warning: "Monserrat" is a misspelling of "Montserrat" (misspell)
    • Line 8: warning: "Littel" is a misspelling of "Little" (misspell)
    • gofaker/data/word.go
    • Line 8: warning: "inbetween" is a misspelling of "between" (misspell)
    • Line 8: warning: "sence" is a misspelling of "sense" (misspell)
    • Line 8: warning: "whith" is a misspelling of "with" (misspell)
    • Line 8: warning: "exept" is a misspelling of "except" (misspell)
    • Line 8: warning: "frome" is a misspelling of "from" (misspell)
    • Line 8: warning: "untill" is a misspelling of "until" (misspell)
    • Line 8: warning: "amoung" is a misspelling of "among" (misspell)
    • Line 8: warning: "amoungst" is a misspelling of "amongst" (misspell)
    • Line 8: warning: "agin" is a misspelling of "again" (misspell)
    • Line 8: warning: "aginst" is a misspelling of "against" (misspell)