Preparing report...

Report for github.com/wandercn/hotbuild

A    Great!    Found 11 issues across 12 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!


gocyclo91%

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.


golint8%

Golint is a linter for Go source code.

    • hotbuild/tree/tree.go
    • Line 1: warning: package comment should be of the form "Package tree ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 22: warning: exported function TreeDirs should have comment or be unexported (golint)
    • Line 37: warning: exported function IsExistDir should have comment or be unexported (golint)
    • Line 44: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hotbuild/config/config.go
    • Line 1: warning: package comment should be of the form "Package config ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 23: warning: exported const ConfFileName should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function InitConf should be of the form "InitConf ..." (golint)
    • hotbuild/cmd/root.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 16: warning: exported const Cliname should have comment or be unexported (golint)
    • Line 18: warning: exported function RootCmd should have comment or be unexported (golint)
    • hotbuild/watch/watch.go
    • Line 1: warning: package comment should be of the form "Package watch ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported function Start should have comment or be unexported (golint)
    • hotbuild/run/run.go
    • Line 1: warning: package comment should be of the form "Package run ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 23: warning: comment on exported function BuildCode should be of the form "BuildCode ..." (golint)
    • Line 52: warning: comment on exported function Run should be of the form "Run ..." (golint)
    • hotbuild/version/version.go
    • Line 1: warning: package comment should be of the form "Package version ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 14: warning: exported const GoVersion should have comment or be unexported (golint)
    • Line 15: warning: exported const Version should have comment or be unexported (golint)
    • hotbuild/strslice/strslice.go
    • Line 1: warning: package comment should be of the form "Package strslice ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 14: warning: exported function IsInStringSlices should have comment or be unexported (golint)
    • hotbuild/cmd/initconf.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • hotbuild/cmd/run.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • hotbuild/cmd/version.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 1: warning: package comment should not have leading space (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!