Preparing report...

Report for github.com/falcosecurity/plugin-sdk-go

(v0.1.0)

A+    Excellent!    Found 24 issues across 50 files

Tweet

gofmt96%

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!


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!


golint56%

Golint is a linter for Go source code.

    • pkg/sdk/plugins/plugins.go
    • Line 60: warning: exported method BaseEvents.Events should have comment or be unexported (golint)
    • Line 64: warning: exported method BaseEvents.SetEvents should have comment or be unexported (golint)
    • Line 74: warning: exported method BaseExtractRequests.ExtractRequests should have comment or be unexported (golint)
    • Line 78: warning: exported method BaseExtractRequests.SetExtractRequests should have comment or be unexported (golint)
    • Line 88: warning: exported method BaseLastError.LastError should have comment or be unexported (golint)
    • Line 92: warning: exported method BaseLastError.SetLastError should have comment or be unexported (golint)
    • Line 96: warning: exported method BaseLastError.LastErrorBuffer should have comment or be unexported (golint)
    • Line 105: warning: exported method BaseStringer.StringerBuffer should have comment or be unexported (golint)
    • Line 114: warning: exported method BaseProgress.ProgressBuffer should have comment or be unexported (golint)
    • Line 123: warning: exported method BaseOpenParams.OpenParamsBuffer should have comment or be unexported (golint)
    • pkg/sdk/plugins/source/source.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 28: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 32: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • pkg/sdk/symbols/info/info.go
    • Line 17: warning: package comment should be of the form "Package info ..." (golint)
    • Line 57: warning: exported function SetType should have comment or be unexported (golint)
    • Line 61: warning: exported function Type should have comment or be unexported (golint)
    • Line 70: warning: exported function SetId should have comment or be unexported (golint)
    • Line 79: warning: exported function SetName should have comment or be unexported (golint)
    • Line 88: warning: exported function SetDescription should have comment or be unexported (golint)
    • Line 97: warning: exported function SetContact should have comment or be unexported (golint)
    • Line 106: warning: exported function SetVersion should have comment or be unexported (golint)
    • Line 115: warning: exported function SetRequiredAPIVersion should have comment or be unexported (golint)
    • Line 124: warning: exported function SetEventSource should have comment or be unexported (golint)
    • Line 136: warning: exported function SetExtractEventSources should have comment or be unexported (golint)
    • pkg/sdk/symbols/extract/async.go
    • Line 31: warning: don't use underscores in Go names; const state_wait should be stateWait (golint)
    • Line 32: warning: don't use underscores in Go names; const state_data_req should be stateDataReq (golint)
    • Line 33: warning: don't use underscores in Go names; const state_exit_req should be stateExitReq (golint)
    • Line 34: warning: don't use underscores in Go names; const state_exit_ack should be stateExitAck (golint)
    • Line 53: warning: exported function SetAsync should have comment or be unexported (golint)
    • Line 57: warning: exported function Async should have comment or be unexported (golint)
    • pkg/sdk/symbols/extract/internal/asyncbench/async.go
    • Line 28: warning: don't use underscores in Go names; func benchmark_async should be benchmarkAsync (golint)
    • Line 32: warning: don't use underscores in Go names; func benchmark_sync should be benchmarkSync (golint)
    • Line 37: warning: don't use underscores in Go names; const state_wait should be stateWait (golint)
    • Line 38: warning: don't use underscores in Go names; const state_data_req should be stateDataReq (golint)
    • Line 39: warning: don't use underscores in Go names; const state_exit_req should be stateExitReq (golint)
    • Line 40: warning: don't use underscores in Go names; const state_exit_ack should be stateExitAck (golint)
    • pkg/sdk/symbols/open/open.go
    • Line 17: warning: package comment should be of the form "Package open ..." (golint)
    • Line 58: warning: comment on exported function SetOnOpen should be of the form "SetOnOpen ..." (golint)
    • pkg/ptr/string.go
    • Line 84: warning: exported method StringBuffer.CharPtr should have comment or be unexported (golint)
    • Line 92: warning: exported method StringBuffer.Free should have comment or be unexported (golint)
    • pkg/cgo/handle.go
    • Line 36: warning: comment on exported type Handle should be of the form "Handle ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported const MaxHandle should be of the form "MaxHandle ..." (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!


misspell98%

Misspell Finds commonly misspelled English words