Preparing report...

Report for github.com/crowdstrike/gofalcon

A    Great!    Found 19 issues across 17 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!


golint52%

Golint is a linter for Go source code.

    • gofalcon/falcon/api_config.go
    • Line 29: warning: exported method ApiConfig.Host should have comment or be unexported (golint)
    • Line 36: warning: exported method ApiConfig.BasePath should have comment or be unexported (golint)
    • gofalcon/falcon/cloud.go
    • Line 8: warning: exported type CloudType should have comment or be unexported (golint)
    • Line 11: warning: exported const CloudUs1 should have comment (or a comment on this block) or be unexported (golint)
    • gofalcon/falcon/models/streaming_models/models.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 83: warning: exported type PatternDispositionFlags should have comment or be unexported (golint)
    • Line 103: warning: exported type DocumentsAccessed should have comment or be unexported (golint)
    • Line 109: warning: exported type AuditKeyValues should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign23%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/crowdstrike/gofalcon/falcon/api_streaming.go
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • gofalcon/examples/falcon_cleanup_pods/main.go
    • Line 14: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/hosts; to add it: (ineffassign)
    • Line 13: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/hosts (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • gofalcon/examples/falcon_host_details/main.go
    • Line 13: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/hosts; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/hosts (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • gofalcon/falcon/api_client.go
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • gofalcon/falcon/api_streaming.go
    • Line 12: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/event_streams; to add it: (ineffassign)
    • Line 12: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/event_streams (invalid package name: "") (ineffassign)
    • gofalcon/falcon/api_error.go
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/crowdstrike/gofalcon/falcon/api_client.go
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 8: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • /home/shawn/mygo/src/github.com/gojp/goreportcard/_repos/src/github.com/crowdstrike/gofalcon/falcon/api_error.go
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 10: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/models; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • gofalcon/examples/stream_new_detections/main.go
    • Line 15: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/detects; to add it: (ineffassign)
    • Line 14: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/detects (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • gofalcon/examples/falcon_iocs/falcon_iocs.go
    • Line 16: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/ioc; to add it: (ineffassign)
    • Line 15: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/ioc (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)
    • Line 98: warning: action declared but not used (ineffassign)
    • Line 104: warning: truth declared but not used (ineffassign)
    • Line 10: warning: "time" imported but not used (ineffassign)
    • Line 13: warning: "github.com/go-openapi/strfmt" imported but not used (ineffassign)
    • gofalcon/examples/simple/main.go
    • Line 11: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/incidents; to add it: (ineffassign)
    • Line 11: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/incidents (invalid package name: "") (ineffassign)
    • gofalcon/examples/falcon_sensor_download/main.go
    • Line 15: warning: no required module provides package github.com/crowdstrike/gofalcon/falcon/client/sensor_download; to add it: (ineffassign)
    • Line 14: warning: could not import github.com/crowdstrike/gofalcon/falcon/client (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/crowdstrike/gofalcon/falcon/client/sensor_download (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/crowdstrike/gofalcon/falcon/models (invalid package name: "") (ineffassign)

misspell94%

Misspell Finds commonly misspelled English words