Preparing report...

Report for github.com/mashiike/setddblock

A+    Excellent!    Found 3 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!


gocyclo80%

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.


golint40%

Golint is a linter for Go source code.

    • setddblock/locker.go
    • Line 14: warning: comment on exported type DynamoDBLocker should be of the form "DynamoDBLocker ..." (with optional leading article) (golint)
    • Line 80: warning: exported method DynamoDBLocker.LockWithErr should have comment or be unexported (golint)
    • Line 191: warning: exported method DynamoDBLocker.Lock should have comment or be unexported (golint)
    • Line 197: warning: exported method DynamoDBLocker.UnlockWithErr should have comment or be unexported (golint)
    • Line 211: warning: exported method DynamoDBLocker.Unlock should have comment or be unexported (golint)
    • Line 217: warning: exported method DynamoDBLocker.LastError should have comment or be unexported (golint)
    • Line 223: warning: exported method DynamoDBLocker.ClearLastError should have comment or be unexported (golint)
    • Line 242: warning: exported function Recover should have comment or be unexported (golint)
    • setddblock/options.go
    • Line 5: warning: exported type Options should have comment or be unexported (golint)
    • Line 15: warning: exported var DefaultLeaseDuration should have comment or be unexported (golint)
    • Line 25: warning: exported function WithNoPanic should have comment or be unexported (golint)
    • Line 31: warning: exported function WithDelay should have comment or be unexported (golint)
    • Line 37: warning: exported type Logger should have comment or be unexported (golint)
    • Line 49: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 55: warning: exported function WithEndpoint should have comment or be unexported (golint)
    • Line 61: warning: exported function WithRegion should have comment or be unexported (golint)
    • Line 67: warning: exported function WithLeaseDuration 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!


misspell80%

Misspell Finds commonly misspelled English words

    • setddblock/locker.go
    • Line 116: warning: "aquire" is a misspelling of "acquire" (misspell)
    • Line 122: warning: "aquire" is a misspelling of "acquire" (misspell)
    • Line 133: warning: "aquire" is a misspelling of "acquire" (misspell)