Preparing report...

Report for github.com/bnema/libwldevices-go

(v0.2.0)

C    Needs some work    Found 24 issues across 27 files

Tweet

gofmt11%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)
    • pointer_constraints/pointer_constraints_test.go
    • Line 250: expected declaration, found '<<':1::warning: file is not gofmted with -s (gofmt)
    • Line 255: expected declaration, found '==':1::warning: file is not gofmted with -s (gofmt)
    • Line 267: expected declaration, found 'for':1::warning: file is not gofmted with -s (gofmt)
    • Line 591: expected declaration, found 'for':1::warning: file is not gofmted with -s (gofmt)
    • Line 619: expected declaration, found 'for':1::warning: file is not gofmted with -s (gofmt)
    • Line 643: expected declaration, found runtime:1::warning: file is not gofmted with -s (gofmt)
    • Line 646: expected declaration, found 'for':1::warning: file is not gofmted with -s (gofmt)
    • internal/client/client.go
    • Line 19: expected '}', found '<<':1::warning: file is not gofmted with -s (gofmt)
    • Line 37: expected declaration, found 'if':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!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.

    • pointer_constraints/pointer_constraints_test.go
    • Line 250: warning: expected declaration, found '<<' (ineffassign)
    • Line 250: warning: expected declaration, found '<<' (ineffassign)
    • Line 255: warning: expected declaration, found '==' (ineffassign)
    • Line 267: warning: expected declaration, found 'for' (ineffassign)
    • Line 591: warning: expected declaration, found 'for' (ineffassign)
    • Line 619: warning: expected declaration, found 'for' (ineffassign)
    • Line 643: warning: expected declaration, found runtime (ineffassign)
    • Line 646: warning: expected declaration, found 'for' (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!