Preparing report...

Report for git.mills.io/prologic/webdavd

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


golint60%

Golint is a linter for Go source code.

    • /git.mills.io/prologic/webdavd/server.go
    • Line 22: warning: exported var WebDAVMethods should have comment or be unexported (golint)
    • Line 43: warning: exported function NewCounters should have comment or be unexported (golint)
    • Line 50: warning: exported method Counters.Inc should have comment or be unexported (golint)
    • Line 54: warning: exported method Counters.Dec should have comment or be unexported (golint)
    • Line 58: warning: exported method Counters.IncBy should have comment or be unexported (golint)
    • Line 62: warning: exported method Counters.DecBy should have comment or be unexported (golint)
    • /git.mills.io/prologic/webdavd/templates.go
    • Line 11: warning: exported type TemplateMap should have comment or be unexported (golint)
    • Line 13: warning: exported type Templates should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTemplates should have comment or be unexported (golint)
    • Line 27: warning: exported method Templates.Add should have comment or be unexported (golint)
    • Line 34: 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!


ineffassign40%

IneffAssign detects ineffectual assignments in Go code.

    • /git.mills.io/prologic/webdavd/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/namsral/flag (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/namsral/flag (invalid package name: "") (ineffassign)
    • /git.mills.io/prologic/webdavd/server.go
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/unrolled/logger (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/rcrowley/go-metrics (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/rcrowley/go-metrics/exp (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/thoas/stats (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/GeertJohan/go.rice (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import golang.org/x/net/webdav (invalid package name: "") (ineffassign)
    • Line 40: warning: undeclared name: metrics (ineffassign)
    • Line 45: warning: undeclared name: metrics (ineffassign)
    • Line 51: warning: undeclared name: metrics (ineffassign)
    • Line 55: warning: undeclared name: metrics (ineffassign)
    • Line 59: warning: undeclared name: metrics (ineffassign)
    • Line 63: warning: undeclared name: metrics (ineffassign)
    • Line 149: warning: undeclared name: rice (ineffassign)
    • Line 180: warning: undeclared name: rice (ineffassign)
    • Line 13: warning: "github.com/rcrowley/go-metrics" imported but not used (ineffassign)
    • Line 17: warning: "github.com/GeertJohan/go.rice" imported but not used (ineffassign)
    • Line 10: warning: could not import github.com/unrolled/logger (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/rcrowley/go-metrics (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/rcrowley/go-metrics/exp (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/thoas/stats (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/GeertJohan/go.rice (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/julienschmidt/httprouter (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import golang.org/x/net/webdav (invalid package name: "") (ineffassign)
    • Line 40: warning: undeclared name: metrics (ineffassign)
    • Line 45: warning: undeclared name: metrics (ineffassign)
    • Line 51: warning: undeclared name: metrics (ineffassign)
    • Line 55: warning: undeclared name: metrics (ineffassign)
    • Line 59: warning: undeclared name: metrics (ineffassign)
    • Line 63: warning: undeclared name: metrics (ineffassign)
    • Line 149: warning: undeclared name: rice (ineffassign)
    • Line 180: warning: undeclared name: rice (ineffassign)
    • Line 13: warning: "github.com/rcrowley/go-metrics" imported but not used (ineffassign)
    • Line 17: warning: "github.com/GeertJohan/go.rice" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!