Preparing report...

Report for github.com/gophercon/2017-talks

C    Needs some work    Found 12 issues across 11 files

Tweet

gofmt27%

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!


golint63%

Golint is a linter for Go source code.

    • 2017-talks/lightningtalks/HarleyLaue-InterfaceDrivenHttpResponseWriters/demo/main.go
    • Line 20: warning: exported type GopherCon should have comment or be unexported (golint)
    • Line 25: warning: exported method GopherCon.GeoJSON should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function TextHandler should be of the form "TextHandler ..." (golint)
    • Line 39: warning: comment on exported function WriteJSON should be of the form "WriteJSON ..." (golint)
    • Line 44: warning: comment on exported function JSONHandler should be of the form "JSONHandler ..." (golint)
    • Line 51: warning: comment on exported function MixedHandler should be of the form "MixedHandler ..." (golint)
    • 2017-talks/lightningtalks/HarleyLaue-InterfaceDrivenHttpResponseWriters/demo/response.go
    • Line 22: warning: comment on exported type Accept should be of the form "Accept ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type ContentType should be of the form "ContentType ..." (with optional leading article) (golint)
    • Line 50: warning: exported method Accept.Response should have comment or be unexported (golint)
    • Line 69: warning: exported method ContentType.Response should have comment or be unexported (golint)
    • Line 74: warning: exported method Error.Response should have comment or be unexported (golint)
    • Line 89: warning: exported method Header.Response should have comment or be unexported (golint)
    • Line 100: warning: exported method StatusCode.Response should have comment or be unexported (golint)
    • Line 105: warning: exported method StatusCode.StatusCode should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words