Preparing report...

Report for github.com/soongo/soon

A+    Excellent!    Found 11 issues across 57 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!


golint85%

Golint is a linter for Go source code.

    • soon/router_test.go
    • Line 210: warning: don't use underscores in Go names; var router_1 should be router1 (golint)
    • Line 214: warning: don't use underscores in Go names; var router_1_1 should be router1_1 (golint)
    • Line 218: warning: don't use underscores in Go names; var router_1_1_1 should be router1_1_1 (golint)
    • Line 225: warning: don't use underscores in Go names; var router_1_1_1_1 should be router1_1_1_1 (golint)
    • soon/internal/errors.go
    • Line 12: warning: exported type HttpError should have comment or be unexported (golint)
    • Line 37: warning: comment on exported function NewStatusCodeError should be of the form "NewStatusCodeError ..." (golint)
    • Line 42: warning: comment on exported function NewStatusTextError should be of the form "NewStatusTextError ..." (golint)
    • soon/util/http.go
    • Line 263: warning: exported function RequestTypeIs should have comment or be unexported (golint)
    • Line 271: warning: exported function TypeIs should have comment or be unexported (golint)
    • soon/util/media_typer.go
    • Line 14: warning: exported type MediaType should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function FormatMediaType should be of the form "FormatMediaType ..." (golint)
    • Line 73: warning: comment on exported function TestMediaType should be of the form "TestMediaType ..." (golint)
    • Line 84: warning: comment on exported function ParseMediaType should be of the form "ParseMediaType ..." (golint)
    • soon/util/range_parser.go
    • Line 14: warning: exported type Range should have comment or be unexported (golint)
    • Line 20: warning: exported type Ranges should have comment or be unexported (golint)
    • soon/util/util.go
    • Line 17: warning: exported var InitDirnameErr should have comment or be unexported (golint)
    • Line 145: warning: exported function Min should have comment or be unexported (golint)
    • Line 152: warning: exported function Max should have comment or be unexported (golint)
    • soon/errors.go
    • Line 9: warning: exported type HttpError should have comment or be unexported (golint)

gocyclo92%

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.

    • soon/binding/form_mapping.go
    • Line 175: warning: cyclomatic complexity 20 of function setWithProperType() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 17 of function mapping() is high (> 15) (gocyclo)
    • soon/router.go
    • Line 73: warning: cyclomatic complexity 22 of function (*node).buildRequestProperties() is high (> 15) (gocyclo)
    • Line 363: warning: cyclomatic complexity 20 of function (*Router).ServeHTTP() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!