Preparing report...

Report for go.isomorphicgo.org/go/isokit

A    Great!    Found 15 issues across 17 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!


golint11%

Golint is a linter for Go source code.

    • /go.isomorphicgo.org/go/isokit/route.go
    • Line 15: warning: exported const RouteWithParamsPattern should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Handler should have comment or be unexported (golint)
    • Line 24: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 26: warning: exported method HandlerFunc.ServeRoute should have comment or be unexported (golint)
    • Line 30: warning: exported type RouteVarsKey should have comment or be unexported (golint)
    • Line 32: warning: exported type Route should have comment or be unexported (golint)
    • Line 38: warning: exported function NewRoute should have comment or be unexported (golint)
    • /go.isomorphicgo.org/go/isokit/template.go
    • Line 20: warning: exported const TemplateRegular should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var PrefixNamePartial should have comment or be unexported (golint)
    • Line 36: warning: exported type Template should have comment or be unexported (golint)
    • Line 42: warning: exported const PlacementAppendTo should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type RenderParams should have comment or be unexported (golint)
    • Line 59: warning: exported method Template.GetTemplateType should have comment or be unexported (golint)
    • Line 63: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 68: warning: exported method Template.NameWithPrefix should have comment or be unexported (golint)
    • Line 86: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 92: warning: exported method Template.Render should have comment or be unexported (golint)
    • Line 113: warning: exported method Template.RenderTemplateOnClient should have comment or be unexported (golint)
    • Line 157: warning: exported method Template.RenderTemplateOnServer should have comment or be unexported (golint)
    • /go.isomorphicgo.org/go/isokit/static.go
    • Line 22: warning: exported var StaticAssetsPath should have comment or be unexported (golint)
    • Line 23: warning: exported var ShouldMinifyStaticAssets should have comment or be unexported (golint)
    • Line 148: warning: exported function BundleStaticAssets should have comment or be unexported (golint)
    • /go.isomorphicgo.org/go/isokit/router.go
    • Line 16: warning: exported type Router should have comment or be unexported (golint)
    • Line 21: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 30: warning: exported method Router.Handle should have comment or be unexported (golint)
    • Line 34: warning: exported method Router.HandleFunc should have comment or be unexported (golint)
    • Line 40: warning: exported method Router.Listen should have comment or be unexported (golint)
    • Line 44: warning: exported method Router.RegisterLinks should have comment or be unexported (golint)
    • /go.isomorphicgo.org/go/isokit/templateset.go
    • Line 20: warning: exported var CogStaticAssetsSearchPaths should have comment or be unexported (golint)
    • Line 22: warning: exported type TemplateSet should have comment or be unexported (golint)
    • Line 30: warning: exported function NewTemplateSet should have comment or be unexported (golint)
    • Line 37: warning: exported method TemplateSet.Members should have comment or be unexported (golint)
    • Line 41: warning: exported method TemplateSet.Bundle should have comment or be unexported (golint)
    • Line 45: warning: exported method TemplateSet.AddTemplateFile should have comment or be unexported (golint)
    • Line 62: warning: exported method TemplateSet.MakeAllAssociations should have comment or be unexported (golint)
    • Line 82: warning: exported method TemplateSet.ImportTemplatesFromMap should have comment or be unexported (golint)
    • Line 114: warning: exported method TemplateSet.Render should have comment or be unexported (golint)
    • Line 120: warning: exported method TemplateSet.PersistTemplateBundleToDisk should have comment or be unexported (golint)
    • Line 127: 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 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 147: warning: exported method TemplateSet.PersistTemplateBundleToTemplateSetBuffer should have comment or be unexported (golint)
    • Line 154: 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 161: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 168: warning: exported method TemplateSet.RestoreTemplateBundleFromDisk should have comment or be unexported (golint)
    • Line 172: 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 197: warning: exported method TemplateSet.RestoreTemplateBundleFromTemplateSetBuffer should have comment or be unexported (golint)
    • Line 201: 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 226: warning: exported method TemplateSet.GatherTemplates should have comment or be unexported (golint)
    • Line 272: warning: exported method TemplateSet.GatherCogTemplates should have comment or be unexported (golint)
    • Line 297: warning: exported function StaticTemplateBundleFileExists should have comment or be unexported (golint)
    • Line 301: 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 307: warning: exported function RegisterStaticAssetsSearchPath should have comment or be unexported (golint)
    • /go.isomorphicgo.org/go/isokit/basicform.go
    • Line 10: warning: exported type BasicForm should have comment or be unexported (golint)
    • Line 18: warning: exported method BasicForm.PrefillFields should have comment or be unexported (golint)
    • Line 22: warning: exported method BasicForm.Fields should have comment or be unexported (golint)
    • Line 26: warning: exported method BasicForm.Errors should have comment or be unexported (golint)
    • Line 30: warning: exported method BasicForm.FormParams should have comment or be unexported (golint)
    • Line 35: warning: exported method BasicForm.SetPrefillFields should have comment or be unexported (golint)
    • Line 39: warning: exported method BasicForm.SetFields should have comment or be unexported (golint)
    • Line 43: warning: exported method BasicForm.GetFieldValue should have comment or be unexported (golint)
    • Line 47: 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: exported method BasicForm.SetErrors should have comment or be unexported (golint)
    • Line 56: warning: exported method BasicForm.SetFormParams should have comment or be unexported (golint)
    • Line 60: warning: exported method BasicForm.SetError should have comment or be unexported (golint)
    • Line 64: warning: exported method BasicForm.ClearErrors should have comment or be unexported (golint)
    • Line 68: warning: exported method BasicForm.PopulateFields should have comment or be unexported (golint)
    • Line 74: warning: exported method BasicForm.DisplayErrors should have comment or be unexported (golint)
    • Line 83: warning: exported method BasicForm.RegenerateErrors should have comment or be unexported (golint)
    • /go.isomorphicgo.org/go/isokit/opdetails.go
    • Line 10: warning: exported type OperatingDetails should have comment or be unexported (golint)
    • Line 16: warning: exported const ServerEnvironment should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported const GoRuntime should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported function OperatingEnvironment should have comment or be unexported (golint)
    • Line 58: warning: exported function OperatingRuntime should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign82%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!