Preparing report...

Report for git.mills.io/prologic/notes

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


golint57%

Golint is a linter for Go source code.

    • /git.mills.io/prologic/notes/server.go
    • Line 30: warning: exported function NewCounters should have comment or be unexported (golint)
    • Line 37: warning: exported method Counters.Inc should have comment or be unexported (golint)
    • Line 41: warning: exported method Counters.Dec should have comment or be unexported (golint)
    • Line 45: warning: exported method Counters.IncBy should have comment or be unexported (golint)
    • Line 49: warning: exported method Counters.DecBy should have comment or be unexported (golint)
    • Line 80: warning: exported type IndexContext should have comment or be unexported (golint)
    • /git.mills.io/prologic/notes/templates.go
    • Line 12: warning: exported type TemplateMap should have comment or be unexported (golint)
    • Line 14: warning: exported type Templates should have comment or be unexported (golint)
    • Line 21: warning: exported function NewTemplates should have comment or be unexported (golint)
    • Line 28: warning: exported method Templates.Add should have comment or be unexported (golint)
    • Line 35: warning: exported method Templates.Exec should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign57%

IneffAssign detects ineffectual assignments in Go code.

    • /git.mills.io/prologic/notes/server.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/unrolled/logger (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/rcrowley/go-metrics (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/rcrowley/go-metrics/exp (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/thoas/stats (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/GeertJohan/go.rice (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/NYTimes/gziphandler (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/microcosm-cc/bluemonday (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/russross/blackfriday (invalid package name: "") (ineffassign)
    • Line 27: warning: undeclared name: metrics (ineffassign)
    • Line 32: warning: undeclared name: metrics (ineffassign)
    • Line 38: warning: undeclared name: metrics (ineffassign)
    • Line 42: warning: undeclared name: metrics (ineffassign)
    • Line 46: warning: undeclared name: metrics (ineffassign)
    • Line 50: warning: undeclared name: metrics (ineffassign)
    • Line 380: warning: undeclared name: rice (ineffassign)
    • Line 18: warning: "github.com/GeertJohan/go.rice" imported but not used (ineffassign)
    • Line 14: warning: "github.com/rcrowley/go-metrics" imported but not used (ineffassign)
    • Line 11: warning: could not import github.com/unrolled/logger (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/rcrowley/go-metrics (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/rcrowley/go-metrics/exp (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/thoas/stats (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/GeertJohan/go.rice (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/NYTimes/gziphandler (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/microcosm-cc/bluemonday (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/russross/blackfriday (invalid package name: "") (ineffassign)
    • Line 27: warning: undeclared name: metrics (ineffassign)
    • Line 32: warning: undeclared name: metrics (ineffassign)
    • Line 38: warning: undeclared name: metrics (ineffassign)
    • Line 42: warning: undeclared name: metrics (ineffassign)
    • Line 46: warning: undeclared name: metrics (ineffassign)
    • Line 50: warning: undeclared name: metrics (ineffassign)
    • Line 380: warning: undeclared name: rice (ineffassign)
    • Line 14: warning: "github.com/rcrowley/go-metrics" imported but not used (ineffassign)
    • Line 18: warning: "github.com/GeertJohan/go.rice" imported but not used (ineffassign)
    • /git.mills.io/prologic/notes/main.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/asdine/storm (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/namsral/flag (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/asdine/storm (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/namsral/flag (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!