Preparing report...

Report for github.com/youscan/go-azuremutex

(v0.1.1)

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


golint50%

Golint is a linter for Go source code.

    • locker.go
    • Line 16: warning: exported type Locker should have comment or be unexported (golint)
    • Line 29: warning: exported function NewLocker should have comment or be unexported (golint)
    • Line 39: warning: exported method Locker.Lock should have comment or be unexported (golint)
    • Line 51: warning: exported method Locker.Unlock should have comment or be unexported (golint)
    • mutex.go
    • Line 10: warning: exported type MutexOptions should have comment or be unexported (golint)
    • Line 18: warning: exported type AzureMutex should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMutex should have comment or be unexported (golint)
    • Line 29: warning: context.Context should be the first parameter of a function (golint)
    • Line 29: warning: exported function NewMutexWithContext should have comment or be unexported (golint)
    • Line 36: warning: exported method AzureMutex.Acquire should have comment or be unexported (golint)
    • Line 69: warning: exported method AzureMutex.Renew should have comment or be unexported (golint)
    • Line 80: warning: exported method AzureMutex.Release should have comment or be unexported (golint)
    • errors.go
    • Line 3: warning: exported type LeaseAlreadyPresentError should have comment or be unexported (golint)
    • Line 7: warning: exported function NewLeaseAlreadyPresentError 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!


misspell83%

Misspell Finds commonly misspelled English words

    • mutex.go
    • Line 71: warning: "aquired" is a misspelling of "acquired" (misspell)
    • Line 82: warning: "aquired" is a misspelling of "acquired" (misspell)