Preparing report...

Report for github.com/mozilla/libaudit-go

A    Great!    Found 39 issues across 47 files

Tweet

gofmt93%

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


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!


golint29%

Golint is a linter for Go source code.


gocyclo91%

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.

    • libaudit-go/rules.go
    • Line 341: warning: cyclomatic complexity 74 of function auditRuleFieldPairData() is high (> 15) (gocyclo)
    • Line 811: warning: cyclomatic complexity 38 of function (*auditRuleData).printRule() is high (> 15) (gocyclo)
    • Line 1074: warning: cyclomatic complexity 26 of function printFieldCmp() is high (> 15) (gocyclo)
    • Line 135: warning: cyclomatic complexity 16 of function (*AuditSyscallRule).toKernelRule() is high (> 15) (gocyclo)
    • libaudit-go/interpret.go
    • Line 64: warning: cyclomatic complexity 84 of function interpretField() is high (> 15) (gocyclo)
    • Line 1081: warning: cyclomatic complexity 45 of function printA2() is high (> 15) (gocyclo)
    • Line 636: warning: cyclomatic complexity 42 of function printA0() is high (> 15) (gocyclo)
    • Line 860: warning: cyclomatic complexity 33 of function printA1() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell91%

Misspell Finds commonly misspelled English words

    • libaudit-go/libaudit.go
    • Line 292: warning: "recieve" is a misspelling of "receive" (misspell)
    • Line 300: warning: "neccesarily" is a misspelling of "necessarily" (misspell)
    • Line 341: warning: "recieving" is a misspelling of "receiving" (misspell)