Preparing report...

Report for github.com/geziyor/geziyor

A+    Excellent!    Found 12 issues across 35 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!


gocyclo94%

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.

    • geziyor/cache/cache.go
    • Line 182: warning: cyclomatic complexity 41 of function (*Transport).RoundTripRFC2616() is high (> 15) (gocyclo)
    • Line 338: warning: cyclomatic complexity 17 of function getFreshness() is high (> 15) (gocyclo)
    • geziyor/cache/cache_test.go
    • Line 257: warning: cyclomatic complexity 27 of function TestDontStorePartialRangeInCache() is high (> 15) (gocyclo)
    • Line 721: warning: cyclomatic complexity 18 of function TestGetWith2VaryHeaders() is high (> 15) (gocyclo)

golint68%

Golint is a linter for Go source code.

    • geziyor/cache/cache.go
    • Line 24: warning: exported type Policy should have comment or be unexported (golint)
    • Line 31: warning: comment on exported const Dummy should be of the form "Dummy ..." (golint)
    • Line 36: warning: comment on exported const RFC2616 should be of the form "RFC2616 ..." (golint)
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 157: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • geziyor/middleware/metrics.go
    • Line 14: warning: exported method Metrics.ProcessRequest should have comment or be unexported (golint)
    • Line 18: warning: exported method Metrics.ProcessResponse should have comment or be unexported (golint)
    • geziyor/middleware/robotstxt.go
    • Line 21: warning: exported function NewRobotsTxt should have comment or be unexported (golint)
    • Line 30: warning: exported method RobotsTxt.ProcessRequest should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words