Preparing report...

Report for github.com/aquasecurity/tracee

(v0.7.0)

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


gofmt98%

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


gocyclo83%

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/ebpf/tracee.go
    • Line 527: warning: cyclomatic complexity 40 of function (*Tracee).populateBPFMaps() is high (> 15) (gocyclo)
    • Line 784: warning: cyclomatic complexity 37 of function (*Tracee).initBPF() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 27 of function New() is high (> 15) (gocyclo)
    • Line 443: warning: cyclomatic complexity 24 of function (*Tracee).getFiltersConfig() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 19 of function (Config).Validate() is high (> 15) (gocyclo)
    • pkg/ebpf/filters.go
    • Line 192: warning: cyclomatic complexity 16 of function (*IntFilter).Parse() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 16 of function (*UintFilter).Parse() is high (> 15) (gocyclo)
    • pkg/bufferdecoder/eventsreader.go
    • Line 46: warning: cyclomatic complexity 29 of function ReadArgFromBuff() is high (> 15) (gocyclo)
    • Line 167: warning: cyclomatic complexity 19 of function GetParamType() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 16 of function readSockaddrFromBuff() is high (> 15) (gocyclo)
    • pkg/ebpf/events_processor.go
    • Line 103: warning: cyclomatic complexity 58 of function (*Tracee).processEvent() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 28 of function (*Tracee).shouldProcessEvent() is high (> 15) (gocyclo)
    • cmd/tracee-ebpf/main.go
    • Line 37: warning: cyclomatic complexity 51 of function main() is high (> 15) (gocyclo)
    • Line 348: warning: cyclomatic complexity 26 of function prepareBpfObject() is high (> 15) (gocyclo)

ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words