Preparing report...

Report for github.com/sharenowTech/virity

A    Great!    Found 18 issues across 32 files

Tweet

gofmt78%

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!


gocyclo96%

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.


golint65%

Golint is a linter for Go source code.

    • virity/cmd/agent/provider/provider.go
    • Line 5: warning: exported type Provider should have comment or be unexported (golint)
    • Line 10: warning: exported type BaseProvider should have comment or be unexported (golint)
    • Line 15: warning: exported type HostInfo should have comment or be unexported (golint)
    • Line 20: warning: exported type Container should have comment or be unexported (golint)
    • Line 22: warning: exported method Container.Convert should have comment or be unexported (golint)
    • virity/internal/config/config.go
    • Line 12: warning: exported var Config should have comment or be unexported (golint)
    • Line 73: warning: exported function GetStoreConfig should have comment or be unexported (golint)
    • Line 82: warning: exported function GetScanConfig should have comment or be unexported (golint)
    • Line 92: warning: exported function GetMonitorConfig should have comment or be unexported (golint)
    • Line 103: warning: exported function GetGeneralConfig should have comment or be unexported (golint)
    • virity/internal/log/log.go
    • Line 45: warning: exported type Fields should have comment or be unexported (golint)
    • Line 47: warning: exported function Debug should have comment or be unexported (golint)
    • Line 50: warning: exported function Info should have comment or be unexported (golint)
    • Line 53: warning: exported function Warn should have comment or be unexported (golint)
    • Line 56: warning: exported function Error should have comment or be unexported (golint)
    • Line 59: warning: exported function Critical should have comment or be unexported (golint)
    • Line 63: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 66: warning: exported function Infof should have comment or be unexported (golint)
    • Line 69: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 72: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 75: warning: exported function Criticalf should have comment or be unexported (golint)
    • virity/cmd/agent/main.go
    • Line 25: warning: exported var Environment should have comment or be unexported (golint)
    • Line 27: warning: exported type Version should have comment or be unexported (golint)
    • Line 59: warning: exported function GenerateAgentData should have comment or be unexported (golint)
    • Line 130: warning: exported function Send should have comment or be unexported (golint)
    • virity/internal/pluginregistry/interfaces.go
    • Line 11: warning: exported const StatusOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const SeverityHigh should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: comment on exported type ContainerGroup should be of the form "ContainerGroup ..." (with optional leading article) (golint)
    • Line 128: warning: exported type Agent should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell93%

Misspell Finds commonly misspelled English words