Preparing report...

Report for github.com/uleroboticsgroup/Secdocker

A    Great!    Found 12 issues across 20 files

Tweet

gofmt95%

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!


gocyclo85%

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.


golint50%

Golint is a linter for Go source code.

    • Secdocker/config/config.go
    • Line 15: warning: exported var ConfigFile should have comment or be unexported (golint)
    • Line 17: warning: exported type GeneralConf should have comment or be unexported (golint)
    • Line 27: warning: exported type RestrictionsConf should have comment or be unexported (golint)
    • Secdocker/plugins/plugins.go
    • Line 17: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 21: warning: exported function ProcessPlugins should have comment or be unexported (golint)
    • Secdocker/plugins/anchore/anchore.go
    • Line 26: warning: exported type ImageStatus should have comment or be unexported (golint)
    • Line 30: warning: exported type VulnAnalysis should have comment or be unexported (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 108: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 114: warning: exported var Plugin should have comment or be unexported (golint)
    • Secdocker/commandline/command.go
    • Line 15: warning: exported type Flag should have comment or be unexported (golint)
    • Line 18: warning: exported const Port should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function GenerateArgsFromConfig should have comment or be unexported (golint)
    • Line 84: warning: exported function ParseRunArgs should have comment or be unexported (golint)
    • Line 136: warning: exported function ParseCommandLineArgs should have comment or be unexported (golint)
    • Line 144: warning: exported function StartCLI should have comment or be unexported (golint)
    • Secdocker/httpserver/server.go
    • Line 214: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Secdocker/tcpintercept/listener.go
    • Line 29: warning: exported method TCPListener.Listen should have comment or be unexported (golint)
    • Line 37: warning: exported method TCPListener.Accept should have comment or be unexported (golint)
    • Line 54: warning: exported method TCPListener.Close should have comment or be unexported (golint)
    • Line 64: warning: exported method TLSListener.Accept should have comment or be unexported (golint)
    • Line 82: warning: exported method TLSListener.Listen should have comment or be unexported (golint)
    • Line 94: warning: exported method TLSListener.Close should have comment or be unexported (golint)
    • Secdocker/tcpintercept/pipe.go
    • Line 13: warning: comment on exported const SO_ORIGINAL_DST should be of the form "SO_ORIGINAL_DST ..." (golint)
    • Line 149: warning: comment on exported method TrudyPipe.ClientConn should be of the form "ClientConn ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words