Preparing report...

Report for github.com/omec-project/aper

(v1.1.2)

A+    Excellent!    Found 3 issues across 6 files

Tweet

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!


gofmt100%

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

No problems detected. Good job!


gocyclo50%

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.

    • common.go
    • Line 30: warning: cyclomatic complexity 19 of function parseFieldParameters() is high (> 15) (gocyclo)
    • aper.go
    • Line 678: warning: cyclomatic complexity 54 of function parseField() is high (> 15) (gocyclo)
    • Line 430: warning: cyclomatic complexity 19 of function (*perBitData).parseInteger() is high (> 15) (gocyclo)
    • Line 248: warning: cyclomatic complexity 18 of function (*perBitData).parseBitString() is high (> 15) (gocyclo)
    • Line 337: warning: cyclomatic complexity 16 of function (*perBitData).parseOctetString() is high (> 15) (gocyclo)
    • marshal.go
    • Line 641: warning: cyclomatic complexity 46 of function (*perRawBitData).makeField() is high (> 15) (gocyclo)
    • Line 380: warning: cyclomatic complexity 23 of function (*perRawBitData).appendInteger() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 20 of function (*perRawBitData).appendBitString() is high (> 15) (gocyclo)
    • Line 280: warning: cyclomatic complexity 19 of function (*perRawBitData).appendOctetString() is high (> 15) (gocyclo)
    • Line 521: warning: cyclomatic complexity 17 of function (*perRawBitData).parseSequenceOf() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!