Preparing report...

Report for github.com/caelifer/tree

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.

    • tree/node/node.go
    • Line 11: warning: comment on exported type NodeMode should be of the form "NodeMode ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported const RootNodeMode should be of the form "RootNodeMode ..." (golint)
    • Line 17: warning: exported const LastNodeMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported method Node.Mark should be of the form "Mark ..." (golint)
    • Line 50: warning: exported method Node.Name should have comment or be unexported (golint)
    • Line 54: warning: exported method Node.Parent should have comment or be unexported (golint)
    • Line 66: warning: exported method Node.FullPath should have comment or be unexported (golint)
    • Line 70: warning: exported method Node.Prefix should have comment or be unexported (golint)
    • Line 74: warning: exported method Node.Decoration should have comment or be unexported (golint)
    • Line 98: warning: exported method Node.SymlinkTarget should have comment or be unexported (golint)
    • Line 113: warning: exported method Node.Checksum should have comment or be unexported (golint)
    • Line 140: warning: exported method Node.IsRoot should have comment or be unexported (golint)
    • Line 144: warning: exported method Node.IsLast should have comment or be unexported (golint)
    • Line 148: warning: exported method Node.IsDir should have comment or be unexported (golint)
    • Line 152: warning: exported method Node.IsRegular should have comment or be unexported (golint)
    • Line 156: warning: exported method Node.IsSymlink should have comment or be unexported (golint)
    • Line 160: warning: exported method Node.IsSocket should have comment or be unexported (golint)
    • Line 163: warning: exported method Node.IsPipe should have comment or be unexported (golint)
    • Line 167: warning: exported method Node.IsExecutable should have comment or be unexported (golint)
    • Line 174: warning: comment on exported function NewNode should be of the form "NewNode ..." (golint)
    • tree/walker/walker.go
    • Line 14: warning: comment on exported type Filter should be of the form "Filter ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type TreeWalker should be of the form "TreeWalker ..." (with optional leading article) (golint)
    • Line 29: warning: comment on exported function NewTreeWalker should be of the form "NewTreeWalker ..." (golint)
    • Line 34: warning: comment on exported method TreeWalker.AddFilter should be of the form "AddFilter ..." (golint)
    • Line 41: warning: comment on exported method TreeWalker.GetCounts should be of the form "GetCounts ..." (golint)
    • Line 46: warning: comment on exported method TreeWalker.Traverse should be of the form "Traverse ..." (golint)
    • tree/formatter/formatter.go
    • Line 11: warning: comment on exported type FormatMode should be of the form "FormatMode ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported const ShowFullPathMode should be of the form "ShowFullPathMode ..." (golint)
    • Line 17: warning: exported const ShowPrefixMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported const ShowUserGroupMode should be of the form "ShowUserGroupMode ..." (golint)
    • Line 28: warning: comment on exported type Formatter should be of the form "Formatter ..." (with optional leading article) (golint)
    • Line 38: warning: exported method Formatter.Next should have comment or be unexported (golint)
    • Line 104: warning: comment on exported method Formatter.ShowFullPath should be of the form "ShowFullPath ..." (golint)
    • Line 109: warning: exported method Formatter.ShowPrefix should have comment or be unexported (golint)
    • Line 113: warning: exported method Formatter.ShowDecoration should have comment or be unexported (golint)
    • Line 117: warning: exported method Formatter.ShowSymlinkTarget should have comment or be unexported (golint)
    • Line 121: warning: exported method Formatter.ShowHash should have comment or be unexported (golint)
    • Line 125: warning: comment on exported method Formatter.SetShowFullPath should be of the form "SetShowFullPath ..." (golint)
    • Line 136: warning: exported method Formatter.SetShowPrefix should have comment or be unexported (golint)
    • Line 146: warning: exported method Formatter.SetShowDecoration should have comment or be unexported (golint)
    • Line 156: warning: exported method Formatter.SetShowSymlinkTarget should have comment or be unexported (golint)
    • Line 166: warning: comment on exported method Formatter.SetShowHash should be of the form "SetShowHash ..." (golint)
    • Line 177: warning: comment on exported method Formatter.NewReader should be of the form "NewReader ..." (golint)
    • Line 183: warning: comment on exported function NewFormatter should be of the form "NewFormatter ..." (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!