Preparing report...

Report for github.com/liuzl/ling

A+    Excellent!    Found 13 issues across 25 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.


golint56%

Golint is a linter for Go source code.

    • ling/document.go
    • Line 3: warning: exported function NewDocument should have comment or be unexported (golint)
    • Line 11: warning: exported method Document.NewSpan should have comment or be unexported (golint)
    • Line 25: warning: exported method Document.XTokens should have comment or be unexported (golint)
    • Line 37: warning: exported method Document.XRealTokens should have comment or be unexported (golint)
    • ling/tokenizer.go
    • Line 11: warning: exported const Lower should have comment or be unexported (golint)
    • Line 17: warning: exported function Type should have comment or be unexported (golint)
    • Line 39: warning: exported function Script should have comment or be unexported (golint)
    • Line 48: warning: exported type Tokenizer should have comment or be unexported (golint)
    • Line 51: warning: exported method Tokenizer.Process should have comment or be unexported (golint)
    • ling/types.go
    • Line 7: warning: exported type Document should have comment or be unexported (golint)
    • Line 15: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 29: warning: exported type Token should have comment or be unexported (golint)
    • Line 44: warning: exported type Span should have comment or be unexported (golint)
    • Line 59: warning: exported type Processor should have comment or be unexported (golint)
    • Line 63: warning: exported var Processors should have comment or be unexported (golint)
    • ling/util/io.go
    • Line 28: warning: comment on exported function UrlToZipContent should be of the form "UrlToZipContent ..." (golint)
    • ling/util/utils.go
    • Line 11: warning: exported function StringIs should have comment or be unexported (golint)
    • Line 20: warning: exported function Convert should have comment or be unexported (golint)
    • Line 54: warning: exported function DictConvert should have comment or be unexported (golint)
    • ling/dict_tagger.go
    • Line 15: warning: exported type DictTagger should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDictTagger should have comment or be unexported (golint)
    • Line 30: warning: exported method DictTagger.Process should have comment or be unexported (golint)
    • ling/unidecoder.go
    • Line 9: warning: exported const Unidecode should have comment or be unexported (golint)
    • Line 15: warning: exported type Unidecoder should have comment or be unexported (golint)
    • Line 18: warning: exported method Unidecoder.Process 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