Preparing report...

Report for github.com/tliron/prudence

A+    Excellent!    Found 50 issues across 64 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!


golint21%

Golint is a linter for Go source code.

    • prudence/platform/context.go
    • Line 12: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.NextSuffix should have comment or be unexported (golint)
    • Line 18: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 24: warning: exported method Context.WriteLiteral should have comment or be unexported (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 27: warning: don't use underscores in Go names; range var rune_ should be rune (golint)
    • prudence/platform/tag.go
    • Line 3: warning: exported type EncodeTagFunc should have comment or be unexported (golint)
    • Line 7: warning: exported function RegisterTag should have comment or be unexported (golint)
    • Line 11: warning: exported function OnTags should have comment or be unexported (golint)
    • prudence/rest/capture.go
    • Line 8: warning: exported type CaptureFunc should have comment or be unexported (golint)
    • Line 14: warning: exported type CaptureWriter should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCaptureWriter should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 35: warning: comment on exported method CaptureWriter.Close should be of the form "Close ..." (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: comment on exported method CaptureWriter.GetWrappedWriter should be of the form "GetWrappedWriter ..." (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/router.go
    • Line 19: warning: exported type Router should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function CreateRouter should be of the form "CreateRouter ..." (golint)
    • Line 35: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 39: warning: don't use underscores in Go names; var route_ should be route (golint)
    • Line 40: warning: don't use underscores in Go names; var route__ should be route (golint)
    • Line 41: warning: don't use underscores in Go names; var route___ should be route (golint)
    • Line 53: warning: exported method Router.AddHandler should have comment or be unexported (golint)
    • Line 53: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 57: warning: exported method Router.AddRoute should have comment or be unexported (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: comment on exported method Router.Handle should be of the form "Handle ..." (golint)
    • Line 64: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/js/prudence-js.go
    • Line 14: warning: comment on exported method PrudenceAPI.Require should be of the form "Require ..." (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: don't use underscores in Go names; var url_ should be url (golint)
    • Line 19: 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)
    • Line 27: warning: comment on exported method PrudenceAPI.Run should be of the form "Run ..." (golint)
    • Line 28: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: don't use underscores in Go names; var url_ should be url (golint)
    • Line 32: 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)
    • Line 37: warning: exported method PrudenceAPI.Go should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 45: 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)
    • Line 52: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 101: 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)
    • Line 114: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 117: warning: don't use underscores in Go names; var runtime_ should be runtime (golint)
    • Line 120: 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)
    • Line 122: warning: don't use underscores in Go names; var runtime_ should be runtime (golint)
    • Line 125: 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)
    • prudence/rest/js.go
    • Line 7: warning: exported type JavaScriptFunc should have comment or be unexported (golint)
    • Line 9: warning: exported function CallJavaScript should have comment or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; var arguments_ should be arguments (golint)
    • prudence/examples/plugin/api.go
    • Line 19: warning: exported type API should have comment or be unexported (golint)
    • Line 23: warning: exported method API.Print should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 27: warning: exported method API.Badger should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: 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)
    • prudence/examples/plugin/echo.go
    • Line 17: warning: exported type Echo should have comment or be unexported (golint)
    • Line 21: warning: comment on exported function CreateEcho should be of the form "CreateEcho ..." (golint)
    • Line 24: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 29: warning: comment on exported method Echo.Handle should be of the form "Handle ..." (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/platform/create.go
    • Line 10: warning: exported type CreateFunc should have comment or be unexported (golint)
    • Line 14: warning: exported function RegisterType should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; func parameter type_ should be type (golint)
    • Line 18: warning: exported function GetCreator should have comment or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; func parameter type_ should be type (golint)
    • Line 21: 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)
    • Line 26: warning: exported function Create should have comment or be unexported (golint)
    • Line 27: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 28: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 31: 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)
    • prudence/rest/context.go
    • Line 22: warning: exported type Context should have comment or be unexported (golint)
    • Line 46: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 58: warning: exported method Context.Copy should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: exported method Context.StartCapture should have comment or be unexported (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: exported method Context.EndCapture should have comment or be unexported (golint)
    • Line 90: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 96: 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)
    • Line 101: warning: exported method Context.StartRender should have comment or be unexported (golint)
    • Line 101: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 106: 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)
    • Line 111: warning: exported method Context.EndRender should have comment or be unexported (golint)
    • Line 111: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 117: 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)
    • Line 122: warning: comment on exported method Context.StartSignature should be of the form "StartSignature ..." (golint)
    • Line 128: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 135: warning: exported method Context.EndSignature should have comment or be unexported (golint)
    • Line 135: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 141: 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)
    • Line 146: warning: exported method Context.ETag should have comment or be unexported (golint)
    • Line 146: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 150: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 158: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 163: warning: exported method Context.Request should have comment or be unexported (golint)
    • Line 163: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 168: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 172: warning: exported method Context.WriteString should have comment or be unexported (golint)
    • Line 172: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 176: warning: exported method Context.Embed should have comment or be unexported (golint)
    • Line 176: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 220: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 233: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 245: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 253: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 261: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 274: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/server.go
    • Line 22: warning: exported type Server should have comment or be unexported (golint)
    • Line 33: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function CreateServer should be of the form "CreateServer ..." (golint)
    • Line 45: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 67: warning: exported method Server.Listen should have comment or be unexported (golint)
    • Line 67: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 71: warning: comment on exported method Server.Start should be of the form "Start ..." (golint)
    • Line 72: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 110: warning: comment on exported method Server.Stop should be of the form "Stop ..." (golint)
    • Line 111: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 116: warning: comment on exported method Server.Handle should be of the form "Handle ..." (golint)
    • Line 117: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 119: warning: don't use underscores in Go names; var context_ should be context (golint)
    • prudence/rest/facet.go
    • Line 18: warning: exported type Facet should have comment or be unexported (golint)
    • Line 24: warning: exported function NewFacet should have comment or be unexported (golint)
    • Line 33: warning: comment on exported function CreateFacet should be of the form "CreateFacet ..." (golint)
    • Line 49: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 58: warning: exported method Facet.FindRepresentation should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 70: warning: comment on exported method Facet.Handle should be of the form "Handle ..." (golint)
    • Line 72: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 77: 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)
    • prudence/platform/common.go
    • Line 10: warning: exported type GetRelativeURL should have comment or be unexported (golint)
    • Line 12: warning: exported type HasGetRelativeURL should have comment or be unexported (golint)
    • prudence/platform/config.go
    • Line 7: warning: exported function AsConfigList should have comment or be unexported (golint)
    • Line 8: warning: don't use underscores in Go names; var value_ should be value (golint)
    • Line 18: warning: exported function AsStringList should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; var value_ should be value (golint)
    • Line 29: warning: exported function ToStringList should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; var element_ should be element (golint)
    • prudence/platform/encoding.go
    • Line 7: warning: exported type EncodingType should have comment or be unexported (golint)
    • Line 10: warning: exported const EncodingTypeUnsupported should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/path-template.go
    • Line 9: warning: exported const PATH_VARIABLE should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type PathTemplate should have comment or be unexported (golint)
    • Line 28: warning: exported var PathTemplateAll should have comment or be unexported (golint)
    • Line 30: warning: exported function NewPathTemplate should have comment or be unexported (golint)
    • Line 44: warning: don't use underscores in Go names; range var rune_ should be rune (golint)
    • Line 80: warning: exported method PathTemplate.Match should have comment or be unexported (golint)
    • Line 80: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: don't use underscores in Go names; var map_ should be map (golint)
    • Line 107: warning: exported type PathTemplates should have comment or be unexported (golint)
    • Line 109: warning: exported function NewPathTemplates should have comment or be unexported (golint)
    • Line 117: warning: exported method PathTemplates.MatchAny should have comment or be unexported (golint)
    • Line 117: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/xprudence/commands/build.go
    • Line 22: warning: don't use underscores in Go names; var go_ should be go (golint)
    • Line 64: warning: exported function Build should have comment or be unexported (golint)
    • Line 82: warning: don't use underscores in Go names; var plugin_ should be plugin (golint)
    • Line 105: warning: exported function GetWorkDirectory should have comment or be unexported (golint)
    • Line 123: warning: exported function ConvertDirectories should have comment or be unexported (golint)
    • Line 136: warning: exported function CreateMain should have comment or be unexported (golint)
    • Line 145: warning: don't use underscores in Go names; var module_ should be module (golint)
    • Line 157: warning: exported function FixGoMod should have comment or be unexported (golint)
    • Line 174: warning: exported function Command should have comment or be unexported (golint)
    • Line 184: warning: exported function FailOnCommandError should have comment or be unexported (golint)
    • Line 185: warning: don't use underscores in Go names; var err_ should be err (golint)
    • prudence/rest/common.go
    • Line 12: warning: exported const PATH_HEADER should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Logger should have comment or be unexported (golint)
    • Line 24: warning: comment on exported method Logger.Printf should be of the form "Printf ..." (golint)
    • Line 25: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported type WrappingWriter should have comment or be unexported (golint)
    • prudence/rest/encoding.go
    • Line 11: warning: exported function GetEncodingType should have comment or be unexported (golint)
    • Line 30: warning: exported type EncodeWriter should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; struct field type_ should be type (golint)
    • Line 36: warning: exported function NewEncodeWriter should have comment or be unexported (golint)
    • Line 36: warning: don't use underscores in Go names; func parameter type_ should be type (golint)
    • Line 44: warning: exported function SetBestEncodeWriter should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: comment on exported method EncodeWriter.Close should be of the form "Close ..." (golint)
    • Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 82: warning: comment on exported method EncodeWriter.GetWrappedWriter should be of the form "GetWrappedWriter ..." (golint)
    • Line 83: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/fasthttp.go
    • Line 11: warning: exported function GetETag should have comment or be unexported (golint)
    • Line 15: warning: exported function AddETag should have comment or be unexported (golint)
    • Line 19: warning: exported function GetContentEncoding should have comment or be unexported (golint)
    • Line 23: warning: exported function GetLastModified should have comment or be unexported (golint)
    • Line 26: 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)
    • Line 31: warning: exported function AddCacheControl should have comment or be unexported (golint)
    • Line 35: warning: exported function AddContentEncoding should have comment or be unexported (golint)
    • Line 39: warning: exported function IfNoneMatch should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: exported function NotFound should have comment or be unexported (golint)
    • Line 52: warning: exported function ParseAccept should have comment or be unexported (golint)
    • Line 61: warning: exported function GetQuery should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; var key_ should be key (golint)
    • prudence/js/prudence-platform.go
    • Line 11: warning: exported method PrudenceAPI.Create should have comment or be unexported (golint)
    • Line 11: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 14: 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)
    • Line 19: warning: exported method PrudenceAPI.Render should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: exported method PrudenceAPI.Start should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 30: warning: don't use underscores in Go names; var startables_ should be startables (golint)
    • Line 33: warning: don't use underscores in Go names; var startable_ should be startable (golint)
    • Line 43: warning: exported method PrudenceAPI.SetCache should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/js/prudence.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 18: warning: exported type PrudenceAPI should have comment or be unexported (golint)
    • Line 28: warning: exported function NewPrudenceAPI should have comment or be unexported (golint)
    • prudence/rest/cache.go
    • Line 7: warning: exported function CacheLoad should have comment or be unexported (golint)
    • Line 13: 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)
    • Line 22: warning: exported function CacheDelete should have comment or be unexported (golint)
    • Line 30: warning: exported function CacheUpdate should have comment or be unexported (golint)
    • Line 37: warning: exported function CacheStoreContext should have comment or be unexported (golint)
    • Line 46: warning: exported function CacheStoreBody should have comment or be unexported (golint)
    • prudence/render/minify.go
    • Line 16: warning: don't use underscores in Go names; var minify_ should be minify (golint)
    • Line 38: warning: comment on exported function RenderMinifyCSS should be of the form "RenderMinifyCSS ..." (golint)
    • Line 43: warning: comment on exported function RenderMinifyHTML should be of the form "RenderMinifyHTML ..." (golint)
    • Line 48: warning: comment on exported function RenderMinifySVG should be of the form "RenderMinifySVG ..." (golint)
    • Line 53: warning: comment on exported function RenderMinifyJavaScript should be of the form "RenderMinifyJavaScript ..." (golint)
    • Line 58: warning: comment on exported function RenderMinifyJSON should be of the form "RenderMinifyJSON ..." (golint)
    • Line 63: warning: comment on exported function RenderMinifyXML should be of the form "RenderMinifyXML ..." (golint)
    • prudence/jst/render.go
    • Line 16: warning: comment on exported function RenderJST should be of the form "RenderJST ..." (golint)
    • Line 79: warning: don't use underscores in Go names; var string_ should be string (golint)
    • prudence/platform/api.go
    • Line 5: warning: exported function RegisterAPI should have comment or be unexported (golint)
    • Line 9: warning: exported function OnAPIs should have comment or be unexported (golint)
    • prudence/platform/start.go
    • Line 3: warning: exported type Startable should have comment or be unexported (golint)
    • Line 8: warning: exported function Start should have comment or be unexported (golint)
    • Line 10: warning: don't use underscores in Go names; var startable_ should be startable (golint)
    • prudence/memory/cache-backend.go
    • Line 31: warning: exported type MemoryCacheBackend should have comment or be unexported (golint)
    • Line 39: warning: exported function NewMemoryCacheBackend should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function CreateMemoryCacheBackend should be of the form "CreateMemoryCacheBackend ..." (golint)
    • Line 54: warning: comment on exported method MemoryCacheBackend.Load should be of the form "Load ..." (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 77: warning: comment on exported method MemoryCacheBackend.Store should be of the form "Store ..." (golint)
    • Line 78: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: comment on exported method MemoryCacheBackend.Delete should be of the form "Delete ..." (golint)
    • Line 85: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 91: warning: exported method MemoryCacheBackend.Prune should have comment or be unexported (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 102: warning: exported method MemoryCacheBackend.StartPruning should have comment or be unexported (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 118: warning: exported method MemoryCacheBackend.StopPruning should have comment or be unexported (golint)
    • Line 118: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/handler.go
    • Line 13: warning: exported type HandleFunc should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function Handled should be of the form "Handled ..." (golint)
    • Line 24: warning: exported type Handler should have comment or be unexported (golint)
    • Line 28: warning: exported function GetHandleFunc should have comment or be unexported (golint)
    • Line 31: 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)
    • Line 40: warning: exported var DefaultNotFound should have comment or be unexported (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/render.go
    • Line 15: warning: exported type RenderWriter should have comment or be unexported (golint)
    • Line 22: warning: exported function NewRenderWriter should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; var render_ should be render (golint)
    • Line 31: 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)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: comment on exported method RenderWriter.Close should be of the form "Close ..." (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: comment on exported method RenderWriter.GetWrappedWriter should be of the form "GetWrappedWriter ..." (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/representation.go
    • Line 18: warning: exported type RepresentionFunc should have comment or be unexported (golint)
    • Line 20: warning: exported function NewRepresentationFunc should have comment or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; var function_ should be function (golint)
    • Line 26: 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)
    • Line 35: warning: exported type Representation should have comment or be unexported (golint)
    • Line 43: warning: exported function CreateRepresentation should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; var runtime_ should be runtime (golint)
    • Line 55: 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)
    • Line 71: 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)
    • Line 100: warning: comment on exported method Representation.Handle should be of the form "Handle ..." (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 140: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 167: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 182: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 213: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 243: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 277: warning: exported type Representations should have comment or be unexported (golint)
    • Line 279: warning: exported function CreateRepresentations should have comment or be unexported (golint)
    • Line 284: warning: don't use underscores in Go names; var representation_ should be representation (golint)
    • Line 285: warning: don't use underscores in Go names; var representation__ should be representation (golint)
    • prudence/rest/route.go
    • Line 20: warning: exported type Route should have comment or be unexported (golint)
    • Line 26: warning: exported function NewRoute should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function CreateRoute should be of the form "CreateRoute ..." (golint)
    • Line 38: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 52: warning: comment on exported method Route.Handle should be of the form "Handle ..." (golint)
    • Line 54: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 82: warning: exported method Route.Match should have comment or be unexported (golint)
    • Line 82: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/cache-entry.go
    • Line 12: warning: exported function NewCacheEntryFromContext should have comment or be unexported (golint)
    • Line 45: warning: exported function NewCacheEntryFromBody should have comment or be unexported (golint)
    • Line 53: warning: exported function CacheEntryGetBestBody should have comment or be unexported (golint)
    • Line 65: warning: exported function CacheEntryGetBody should have comment or be unexported (golint)
    • Line 68: 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)
    • Line 130: warning: exported function CacheEntryDescribe should have comment or be unexported (golint)
    • Line 148: warning: exported function CacheEntryPresent should have comment or be unexported (golint)
    • Line 166: warning: exported function CacheEntryWrite should have comment or be unexported (golint)
    • Line 170: 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)
    • Line 178: warning: don't use underscores in Go names; var bytes_ should be bytes (golint)
    • prudence/platform/cache.go
    • Line 14: warning: exported type CacheBackend should have comment or be unexported (golint)
    • Line 20: warning: exported function SetCacheBackend should have comment or be unexported (golint)
    • Line 20: warning: don't use underscores in Go names; func parameter cacheBackend_ should be cacheBackend (golint)
    • Line 24: warning: exported function GetCacheBackend should have comment or be unexported (golint)
    • Line 32: warning: exported type CacheKey should have comment or be unexported (golint)
    • Line 40: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 48: warning: exported type CacheEntry should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 63: warning: exported method CacheEntry.Expired should have comment or be unexported (golint)
    • Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 67: warning: comment on exported method CacheEntry.TimeToLive should be of the form "TimeToLive ..." (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/platform/render.go
    • Line 7: warning: exported type RenderFunc should have comment or be unexported (golint)
    • Line 11: warning: exported function RegisterRenderer should have comment or be unexported (golint)
    • Line 15: warning: exported function GetRenderer should have comment or be unexported (golint)
    • Line 26: warning: exported function Render should have comment or be unexported (golint)
    • Line 31: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • prudence/rest/static.go
    • Line 19: warning: exported type Static should have comment or be unexported (golint)
    • Line 25: warning: exported function NewStatic should have comment or be unexported (golint)
    • Line 52: warning: comment on exported function CreateStatic should be of the form "CreateStatic ..." (golint)
    • Line 54: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 67: warning: exported method Static.Close should have comment or be unexported (golint)
    • Line 67: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 71: warning: comment on exported method Static.Handle should be of the form "Handle ..." (golint)
    • Line 73: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/hash.go
    • Line 15: warning: exported type HashWriter should have comment or be unexported (golint)
    • Line 20: warning: exported function NewHashWriter should have comment or be unexported (golint)
    • Line 27: warning: exported method HashWriter.Hash should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 37: warning: comment on exported method HashWriter.Close should be of the form "Close ..." (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: comment on exported method HashWriter.GetWrappedWriter should be of the form "GetWrappedWriter ..." (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • prudence/rest/resource.go
    • Line 16: warning: exported type Resource should have comment or be unexported (golint)
    • Line 22: warning: exported function NewResource should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function CreateResource should be of the form "CreateResource ..." (golint)
    • Line 35: warning: don't use underscores in Go names; var config_ should be config (golint)
    • Line 38: warning: don't use underscores in Go names; var facet_ should be facet (golint)
    • Line 39: warning: don't use underscores in Go names; var facet__ should be facet (golint)
    • Line 50: warning: exported method Resource.AddFacet should have comment or be unexported (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words