Preparing report...

Report for github.com/falcosecurity/event-generator

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


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!


golint57%

Golint is a linter for Go source code.

    • event-generator/pkg/runner/runner.go
    • Line 17: warning: exported type Runner should have comment or be unexported (golint)
    • Line 95: warning: error should be the last type when returning multiple items (golint)
    • Line 123: warning: exported method Runner.Run should have comment or be unexported (golint)
    • Line 154: warning: exported function New should have comment or be unexported (golint)
    • Line 190: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 197: warning: exported function WithSleep should have comment or be unexported (golint)
    • Line 204: warning: exported function WithLoop should have comment or be unexported (golint)
    • Line 211: warning: exported function WithKubeFactory should have comment or be unexported (golint)
    • Line 218: warning: exported function WithKubeNamespace should have comment or be unexported (golint)
    • Line 225: warning: exported function WithExecutable should have comment or be unexported (golint)
    • Line 233: warning: exported function WithPlugin should have comment or be unexported (golint)
    • Line 240: warning: exported function WithAllEnabled should have comment or be unexported (golint)
    • Line 247: warning: exported function WithQuiet should have comment or be unexported (golint)
    • event-generator/pkg/tester/tester.go
    • Line 18: warning: exported const DefaultTestTimeout should have comment or be unexported (golint)
    • Line 46: warning: exported method Tester.PreRun should have comment or be unexported (golint)
    • Line 50: warning: exported method Tester.PostRun should have comment or be unexported (golint)
    • Line 95: warning: exported function WithTestTimeout should have comment or be unexported (golint)
    • event-generator/pkg/counter/counter.go
    • Line 164: warning: exported method Counter.PreRun should have comment or be unexported (golint)
    • Line 176: warning: exported method Counter.PostRun should have comment or be unexported (golint)
    • Line 183: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 190: warning: exported function WithActions should have comment or be unexported (golint)
    • Line 202: warning: exported function WithLoop should have comment or be unexported (golint)
    • Line 209: warning: exported function WithSleep should have comment or be unexported (golint)
    • Line 216: warning: exported function WithRoundDuration should have comment or be unexported (golint)
    • Line 223: warning: exported function WithPollingTimeout should have comment or be unexported (golint)
    • Line 230: warning: exported function WithPid should have comment or be unexported (golint)
    • Line 246: warning: exported function WithHumanize 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!