Preparing report...

Report for github.com/v-byte-cpu/juicyrout

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


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!


golint52%

Golint is a linter for Go source code.

    • juicyrout/regex.go
    • Line 13: warning: exported const URLRegexp should have comment or be unexported (golint)
    • Line 14: warning: exported const PartialURLRegexp should have comment or be unexported (golint)
    • Line 15: warning: exported const SlashRegexp should have comment or be unexported (golint)
    • Line 16: warning: exported const ProcessContentTypeRegexp should have comment or be unexported (golint)
    • Line 26: warning: exported type BufferPool should have comment or be unexported (golint)
    • Line 40: warning: exported method BufferPool.Get should have comment or be unexported (golint)
    • Line 44: warning: exported method BufferPool.Put should have comment or be unexported (golint)
    • Line 49: warning: exported type RegexProcessor should have comment or be unexported (golint)
    • Line 173: warning: exported function NewReplaceRegexReader should have comment or be unexported (golint)
    • juicyrout/response.go
    • Line 13: warning: exported type ResponseProcessor should have comment or be unexported (golint)
    • Line 17: warning: exported function NewResponseProcessor should have comment or be unexported (golint)
    • juicyrout/service.go
    • Line 14: warning: exported type APILure should have comment or be unexported (golint)
    • Line 20: warning: exported type LureService should have comment or be unexported (golint)
    • Line 27: warning: exported type ByteSource should have comment or be unexported (golint)
    • Line 32: warning: exported function NewLureService should have comment or be unexported (golint)
    • Line 113: warning: exported type FileByteSource should have comment or be unexported (golint)
    • Line 117: warning: exported method FileByteSource.ReadAll should have comment or be unexported (golint)
    • Line 124: warning: comment on exported method FileByteSource.WriteAll should be of the form "WriteAll ..." (golint)
    • Line 134: warning: exported type APILoginInfo should have comment or be unexported (golint)
    • Line 139: warning: exported type LootService should have comment or be unexported (golint)
    • Line 143: warning: exported function NewLootService should have comment or be unexported (golint)
    • juicyrout/cookie.go
    • Line 12: warning: exported type CookieManager should have comment or be unexported (golint)
    • Line 18: warning: exported function NewCookieManager should have comment or be unexported (golint)
    • Line 51: warning: exported function NewSessionStorage should have comment or be unexported (golint)
    • juicyrout/auth.go
    • Line 12: warning: exported type AuthConfig should have comment or be unexported (golint)
    • Line 27: warning: exported function NewAuthMiddleware should have comment or be unexported (golint)
    • juicyrout/domain.go
    • Line 9: warning: exported type DomainConverter should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDomainConverter should have comment or be unexported (golint)
    • juicyrout/proxy.go
    • Line 10: warning: exported type RequestDoer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewProxyHandler should have comment or be unexported (golint)
    • juicyrout/repository.go
    • Line 11: warning: exported type DBLoginInfo should have comment or be unexported (golint)
    • Line 18: warning: exported type LootRepository should have comment or be unexported (golint)
    • Line 22: warning: exported function NewFileLootRepository should have comment or be unexported (golint)
    • juicyrout/request.go
    • Line 13: warning: exported type RequestProcessor should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRequestProcessor should have comment or be unexported (golint)
    • juicyrout/api.go
    • Line 16: warning: exported type APIConfig should have comment or be unexported (golint)
    • Line 31: warning: exported function NewAPIMiddleware should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!