Preparing report...

Report for github.com/aler9/gomavlib

(v0.0.0-20211201090617-d0c65b85f573)

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


gocyclo90%

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.

    • pkg/transceiver/transceiver.go
    • Line 109: warning: cyclomatic complexity 18 of function (*Transceiver).Read() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 16 of function (*Transceiver).writeFrameAndFill() is high (> 15) (gocyclo)
    • pkg/msg/decencoder.go
    • Line 106: warning: cyclomatic complexity 27 of function NewDecEncoder() is high (> 15) (gocyclo)
    • Line 359: warning: cyclomatic complexity 21 of function valueDecode() is high (> 15) (gocyclo)
    • Line 446: warning: cyclomatic complexity 19 of function valueEncode() is high (> 15) (gocyclo)
    • node.go
    • Line 170: warning: cyclomatic complexity 25 of function NewNode() is high (> 15) (gocyclo)
    • Line 291: warning: cyclomatic complexity 23 of function (*Node).run() is high (> 15) (gocyclo)
    • node_test.go
    • Line 51: warning: cyclomatic complexity 21 of function doTest() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • examples/dialect-custom/main.go
    • Line 11: warning: comment on exported type MessageCustom should be of the form "MessageCustom ..." (with optional leading article) (golint)
    • Line 19: warning: exported method MessageCustom.GetID should have comment or be unexported (golint)
    • examples/endpoint-custom/main.go
    • Line 10: warning: comment on exported type CustomEndpoint should be of the form "CustomEndpoint ..." (with optional leading article) (golint)
    • Line 17: warning: exported function NewCustomEndpoint should have comment or be unexported (golint)
    • Line 23: warning: exported method CustomEndpoint.Close 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!