Preparing report...

Report for github.com/go-dedup/fsimilar

A+    Excellent!    Found 4 issues across 8 files

Tweet

gofmt87%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint62%

Golint is a linter for Go source code.

    • fsimilar/cmd_sim.go
    • Line 155: warning: should omit 2nd value from range; this loop is equivalent to `for ii := range ...` (golint)
    • Line 172: warning: should omit 2nd value from range; this loop is equivalent to `for ii := range ...` (golint)
    • fsimilar/fcollection.go
    • Line 30: warning: exported method FileT.Distance should have comment or be unexported (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 38: warning: exported method FileT.Similarity should have comment or be unexported (golint)
    • Line 43: warning: exported type Files should have comment or be unexported (golint)
    • Line 73: warning: exported function NewFCollection should have comment or be unexported (golint)
    • Line 77: warning: exported method FCollection.Add should have comment or be unexported (golint)
    • Line 81: warning: exported method FCollection.Get should have comment or be unexported (golint)
    • Line 86: warning: exported method FCollection.Len should have comment or be unexported (golint)
    • Line 90: warning: exported method FCollection.LenOf should have comment or be unexported (golint)
    • fsimilar/vectorspace.go
    • Line 12: warning: exported type Concordance should have comment or be unexported (golint)
    • Line 14: warning: exported method Concordance.Magnitude should have comment or be unexported (golint)
    • Line 24: warning: exported function BuildConcordance should have comment or be unexported (golint)
    • Line 42: warning: exported function Relation should have comment or be unexported (golint)
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (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!


misspell87%

Misspell Finds commonly misspelled English words