Preparing report...

Report for github.com/mwitkow/go-flagz

A+    Excellent!    Found 12 issues across 32 files

Tweet

gofmt84%

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!


golint81%

Golint is a linter for Go source code.

    • go-flagz/protobuf/dynproto3.go
    • Line 40: warning: comment on exported type DynProto3Value should be of the form "DynProto3Value ..." (with optional leading article) (golint)
    • Line 140: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-flagz/fileread_flag.go
    • Line 52: warning: exported method FileReadValue.Set should have comment or be unexported (golint)
    • Line 57: warning: exported method FileReadValue.Type should have comment or be unexported (golint)
    • go-flagz/configmap/updater.go
    • Line 36: warning: exported type Updater should have comment or be unexported (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 59: warning: exported method Updater.Initialize should have comment or be unexported (golint)
    • Line 79: warning: comment on exported method Updater.Stop should be of the form "Stop ..." (golint)
    • go-flagz/watcher/watcher.go
    • Line 5: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 82: warning: comment on exported method Watcher.Stop should be of the form "Stop ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell96%

Misspell Finds commonly misspelled English words