Preparing report...

Report for github.com/felixge/httpsnoop

A    Great!    Found 6 issues across 11 files

Tweet

gofmt90%

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!


gocyclo63%

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.


golint81%

Golint is a linter for Go source code.

    • httpsnoop/codegen/main.go
    • Line 12: warning: exported type Build should have comment or be unexported (golint)
    • Line 18: warning: exported method Build.MustBuild should have comment or be unexported (golint)
    • Line 34: warning: exported method Build.Implementation should have comment or be unexported (golint)
    • Line 112: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 170: warning: exported method Build.Tests should have comment or be unexported (golint)
    • Line 226: warning: exported type Interfaces should have comment or be unexported (golint)
    • Line 228: warning: exported type Interface should have comment or be unexported (golint)
    • Line 233: warning: exported type InterfaceFunc should have comment or be unexported (golint)
    • Line 239: warning: exported type FuncArgs should have comment or be unexported (golint)
    • Line 249: warning: exported method FuncArgs.Names should have comment or be unexported (golint)
    • Line 257: warning: exported type FuncArg should have comment or be unexported (golint)
    • Line 262: warning: exported method InterfaceFunc.Type should have comment or be unexported (golint)
    • Line 266: warning: exported type Generator should have comment or be unexported (golint)
    • Line 270: warning: exported method Generator.Printf should have comment or be unexported (golint)
    • Line 274: warning: exported method Generator.WriteFile should have comment or be unexported (golint)
    • Line 285: warning: exported method Generator.MustWriteFile should have comment or be unexported (golint)
    • Line 291: warning: exported method Generator.Bytes should have comment or be unexported (golint)
    • Line 295: warning: exported method Generator.Format should have comment or be unexported (golint)
    • httpsnoop/wrap_generated_gteq_1.8.go
    • Line 423: warning: exported type Unwrapper should have comment or be unexported (golint)
    • Line 433: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!