Preparing report...

Report for github.com/databeast/whatnot

A+    Excellent!    Found 13 issues across 52 files

Tweet

gofmt80%

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

    • whatnot/semaphore.go
    • Line 57: missing ',' before newline in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 58: expected operand, found '}':1::warning: file is not gofmted with -s (gofmt)
    • Line 60: missing ',' in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 61: expected operand, found 'for':1::warning: file is not gofmted with -s (gofmt)
    • Line 63: missing ',' in composite literal:1::warning: file is not gofmted with -s (gofmt)
    • Line 64: expected operand, found 'return':1::warning: file is not gofmted with -s (gofmt)
    • Line 65: missing ',' before newline in composite literal:1::warning: file is not gofmted with -s (gofmt)
    • Line 66: missing ',' before newline in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 67: expected operand, found '}':1::warning: file is not gofmted with -s (gofmt)
    • Line 68: missing ',' in argument list:1::warning: file is not gofmted with -s (gofmt)
    • Line 69: expected operand, found '}':1::warning: file is not gofmted with -s (gofmt)

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!


golint92%

Golint is a linter for Go source code.

    • whatnot/mutex/smartmutex.go
    • Line 26: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 65: warning: exported method SmartMutex.Name should have comment or be unexported (golint)
    • Line 69: warning: exported method SmartMutex.IsLocked should have comment or be unexported (golint)
    • Line 163: warning: exported method SmartMutex.RUnlock should have comment or be unexported (golint)
    • Line 170: warning: exported method SmartMutex.Rlock should have comment or be unexported (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