Preparing report...

Report for github.com/devplayg/dff

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


golint25%

Golint is a linter for Go source code.

    • dff/obj.go
    • Line 8: warning: exported const SortBySize should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported const JsonFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Option should have comment or be unexported (golint)
    • Line 26: warning: exported type FileDetail should have comment or be unexported (golint)
    • Line 31: warning: exported type FileMap should have comment or be unexported (golint)
    • Line 33: warning: exported type FileMapDetail should have comment or be unexported (golint)
    • Line 38: warning: exported function NewFileMapDetail should have comment or be unexported (golint)
    • Line 45: warning: exported type FileMapBySize should have comment or be unexported (golint)
    • Line 47: warning: exported type DuplicateFileMap should have comment or be unexported (golint)
    • Line 49: warning: exported type UniqFile should have comment or be unexported (golint)
    • Line 56: warning: exported function NewDuplicateFiles should have comment or be unexported (golint)
    • Line 63: warning: comment on exported type UniqFiles should be of the form "UniqFiles ..." (with optional leading article) (golint)
    • Line 66: warning: exported method UniqFiles.Len should have comment or be unexported (golint)
    • Line 67: warning: exported method UniqFiles.Swap should have comment or be unexported (golint)
    • Line 69: warning: comment on exported type BySize should be of the form "BySize ..." (with optional leading article) (golint)
    • Line 72: warning: exported method BySize.Less should have comment or be unexported (golint)
    • Line 74: warning: comment on exported type ByTotalSize should be of the form "ByTotalSize ..." (with optional leading article) (golint)
    • Line 77: warning: exported method ByTotalSize.Less should have comment or be unexported (golint)
    • Line 79: warning: comment on exported type ByCount should be of the form "ByCount ..." (with optional leading article) (golint)
    • Line 82: warning: exported method ByCount.Less should have comment or be unexported (golint)
    • dff/dff.go
    • Line 5: warning: package comment should be of the form "Package dff ..." (golint)
    • Line 16: warning: exported function NewDuplicateFileFinder should have comment or be unexported (golint)
    • Line 26: warning: exported method DuplicateFileFinder.Find should have comment or be unexported (golint)
    • Line 60: warning: exported method DuplicateFileFinder.Display should have comment or be unexported (golint)
    • dff/functions.go
    • Line 220: warning: exported function InitLogger should have comment or be unexported (golint)
    • Line 231: warning: comment on exported function ByteCountDecimal should be of the form "ByteCountDecimal ..." (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!