Preparing report...

Report for github.com/go-dedup/simhash

A+    Excellent!    Found 9 issues across 24 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!


gocyclo100%

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.

No problems detected. Good job!


golint75%

Golint is a linter for Go source code.

    • simhash/simhashCJK/simhashCJK.go
    • Line 7: warning: package comment should be of the form "Package simhashCJK ..." (golint)
    • Line 11: warning: don't use MixedCaps in package name; simhashCJK should be simhashcjk (golint)
    • Line 18: warning: exported type SimhashCJK should have comment or be unexported (golint)
    • Line 39: warning: exported method SimhashCJK.NewWordFeatureSet should have comment or be unexported (golint)
    • Line 43: warning: exported method SimhashCJK.NewCJKWordFeatureSet should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method CJKWordFeatureSet.GetFeatures should be of the form "GetFeatures ..." (golint)
    • simhash/simhashEng/simhashEng.go
    • Line 7: warning: package comment should be of the form "Package simhashEng ..." (golint)
    • Line 11: warning: don't use MixedCaps in package name; simhashEng should be simhasheng (golint)
    • Line 20: warning: exported type SimhashEng should have comment or be unexported (golint)
    • simhash/simhashUTF/simhashUTF.go
    • Line 12: warning: package comment should be of the form "Package simhashUTF ..." (golint)
    • Line 18: warning: don't use MixedCaps in package name; simhashUTF should be simhashutf (golint)
    • Line 31: warning: exported type SimhashUTF should have comment or be unexported (golint)
    • Line 64: warning: exported method SimhashUTF.NewWordFeatureSet should have comment or be unexported (golint)
    • Line 68: warning: exported method SimhashUTF.NewUnicodeWordFeatureSet should have comment or be unexported (golint)
    • Line 74: warning: exported method UnicodeWordFeatureSet.Normalize should have comment or be unexported (golint)
    • Line 79: warning: comment on exported method UnicodeWordFeatureSet.GetFeatures should be of the form "GetFeatures ..." (golint)
    • simhash/simhash.go
    • Line 5: warning: package comment should be of the form "Package simhash ..." (golint)
    • Line 21: warning: exported type Simhash should have comment or be unexported (golint)
    • Line 33: warning: exported type SimhashBase should have comment or be unexported (golint)
    • Line 36: warning: exported type Vector should have comment or be unexported (golint)
    • Line 52: warning: exported var Doc2words should have comment or be unexported (golint)
    • Line 143: warning: comment on exported function NewFeature should be of the form "NewFeature ..." (golint)
    • Line 150: warning: comment on exported function NewFeatureWithWeight should be of the form "NewFeatureWithWeight ..." (golint)
    • Line 193: warning: comment on exported method SimhashBase.SimhashBytes should be of the form "SimhashBytes ..." (golint)
    • Line 204: warning: exported method SimhashBase.NewWordFeatureSet should have comment or be unexported (golint)
    • Line 210: warning: exported method WordFeatureSet.Normalize should have comment or be unexported (golint)
    • Line 216: warning: comment on exported method WordFeatureSet.GetFeatures should be of the form "GetFeatures ..." (golint)
    • Line 221: warning: comment on exported function DoGetFeatures should be of the form "DoGetFeatures ..." (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!


misspell83%

Misspell Finds commonly misspelled English words

    • simhash/bench_test.go
    • Line 18: warning: "ridiculus" is a misspelling of "ridiculous" (misspell)
    • Line 44: warning: "ridiculus" is a misspelling of "ridiculous" (misspell)
    • Line 66: warning: "ridiculus" is a misspelling of "ridiculous" (misspell)
    • simhash/sho/bktree.go
    • Line 9: warning: "similiarity" is a misspelling of "similarity" (misspell)
    • Line 11: warning: "Similiarity" is a misspelling of "Similarity" (misspell)
    • simhash/sho/exampleB_test.go
    • Line 53: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • Line 76: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • Line 77: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • Line 78: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • simhash/sho/example_test.go
    • Line 24: warning: "wiht" is a misspelling of "with" (misspell)
    • Line 144: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • Line 157: warning: "wiht" is a misspelling of "with" (misspell)
    • Line 337: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • Line 338: warning: "Similiar" is a misspelling of "Similar" (misspell)
    • Line 339: warning: "Similiar" is a misspelling of "Similar" (misspell)