Preparing report...

Report for github.com/CooliMC/GoWebDav

C    Needs some work    Found 3 issues across 4 files

Tweet

gofmt25%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint25%

Golint is a linter for Go source code.

    • GoWebDav/gowebdav/Database.go
    • Line 46: warning: comment on exported type DatabaseConnection should be of the form "DatabaseConnection ..." (with optional leading article) (golint)
    • GoWebDav/gowebdav/WebDav.go
    • Line 39: warning: comment on exported function Execute should be of the form "Execute ..." (golint)
    • Line 74: warning: should not use basic type untyped string as key in context.WithValue (golint)
    • Line 94: warning: should not use basic type untyped string as key in context.WithValue (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 151: 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 166: warning: exported type IPRateLimiter should have comment or be unexported (golint)
    • Line 173: warning: exported method IPRateLimiter.KK should have comment or be unexported (golint)
    • Line 186: warning: exported type DynamicFileSystem should have comment or be unexported (golint)
    • Line 190: warning: exported method DynamicFileSystem.Mkdir should have comment or be unexported (golint)
    • Line 201: warning: exported method DynamicFileSystem.OpenFile should have comment or be unexported (golint)
    • Line 222: warning: exported method DynamicFileSystem.RemoveAll should have comment or be unexported (golint)
    • Line 236: warning: exported method DynamicFileSystem.Rename should have comment or be unexported (golint)
    • Line 248: warning: exported method DynamicFileSystem.Stat should have comment or be unexported (golint)
    • GoWebDav/utils/Utils.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 21: warning: comment on exported function MySQLClientDB should be of the form "MySQLClientDB ..." (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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!