Preparing report...

Report for github.com/JaSei/pathutil-go

A+    Excellent!    Found 14 issues across 37 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!


golint62%

Golint is a linter for Go source code.

    • pathutil-go/copy.go
    • Line 8: warning: exported method PathImpl.CopyFile should have comment or be unexported (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pathutil-go/makepath.go
    • Line 7: warning: comment on exported method PathImpl.MakePath should be of the form "MakePath ..." (golint)
    • Line 13: warning: comment on exported method PathImpl.MakePathMode should be of the form "MakePathMode ..." (golint)
    • pathutil-go/base.go
    • Line 19: warning: comment on exported method PathImpl.Basename should be of the form "Basename ..." (golint)
    • pathutil-go/child.go
    • Line 7: warning: exported method PathImpl.Child should have comment or be unexported (golint)
    • Line 17: warning: exported method PathImpl.Children should have comment or be unexported (golint)
    • pathutil-go/struct.go
    • Line 3: warning: comment on exported type PathImpl should be of the form "PathImpl ..." (with optional leading article) (golint)
    • pathutil-go/append.go
    • Line 7: warning: exported method PathImpl.Append should have comment or be unexported (golint)
    • Line 11: warning: exported method PathImpl.AppendBytes should have comment or be unexported (golint)
    • pathutil-go/interface.go
    • Line 10: warning: exported type VisitFunc should have comment or be unexported (golint)
    • Line 12: warning: exported type VisitOpt should have comment or be unexported (golint)
    • Line 16: warning: exported type LinesFunc should have comment or be unexported (golint)
    • Line 18: warning: exported type Path should have comment or be unexported (golint)
    • pathutil-go/open.go
    • Line 12: warning: exported type ReadSeekCloser should have comment or be unexported (golint)
    • Line 81: warning: exported method PathImpl.SlurpBytes should have comment or be unexported (golint)
    • Line 147: warning: comment on exported method PathImpl.Lines should be of the form "Lines ..." (golint)
    • pathutil-go/visit_test.go
    • Line 13: warning: don't use underscores in Go names; var flat_expected should be flatExpected (golint)
    • Line 33: warning: don't use underscores in Go names; var flat_expected should be flatExpected (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!