Preparing report...

Report for github.com/KnicKnic/go-powershell

A    Great!    Found 8 issues across 20 files

Tweet

gofmt65%

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!


golint80%

Golint is a linter for Go source code.

    • go-powershell/pkg/logger/kloghelper/klog.go
    • Line 16: warning: exported method Klog.Warning should have comment or be unexported (golint)
    • Line 21: warning: exported method Klog.Information should have comment or be unexported (golint)
    • Line 26: warning: exported method Klog.Verbose should have comment or be unexported (golint)
    • Line 31: warning: exported method Klog.Debug should have comment or be unexported (golint)
    • Line 47: warning: exported method Klog.Warningln should have comment or be unexported (golint)
    • Line 52: warning: exported method Klog.Informationln should have comment or be unexported (golint)
    • Line 57: warning: exported method Klog.Verboseln should have comment or be unexported (golint)
    • Line 62: warning: exported method Klog.Debugln should have comment or be unexported (golint)
    • Line 67: warning: exported method Klog.Errorln should have comment or be unexported (golint)
    • Line 72: warning: exported method Klog.Writeln should have comment or be unexported (golint)
    • go-powershell/pkg/logger/gloghelper/glog.go
    • Line 16: warning: exported method Glog.Warning should have comment or be unexported (golint)
    • Line 21: warning: exported method Glog.Information should have comment or be unexported (golint)
    • Line 26: warning: exported method Glog.Verbose should have comment or be unexported (golint)
    • Line 31: warning: exported method Glog.Debug should have comment or be unexported (golint)
    • Line 47: warning: exported method Glog.Warningln should have comment or be unexported (golint)
    • Line 52: warning: exported method Glog.Informationln should have comment or be unexported (golint)
    • Line 57: warning: exported method Glog.Verboseln should have comment or be unexported (golint)
    • Line 62: warning: exported method Glog.Debugln should have comment or be unexported (golint)
    • Line 67: warning: exported method Glog.Errorln should have comment or be unexported (golint)
    • Line 72: warning: exported method Glog.Writeln should have comment or be unexported (golint)
    • go-powershell/pkg/powershell/higherops_test.go
    • Line 124: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 128: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 131: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 134: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 137: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 140: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 144: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 148: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 152: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 156: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 160: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 164: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • go-powershell/pkg/powershell/psh_host.go
    • Line 9: warning: don't use underscores in Go names; const nativePowerShell_InvalidHandleValue should be nativePowerShellInvalidHandleValue (golint)
    • Line 10: warning: don't use underscores in Go names; const nativePowerShell_InvalidPointer should be nativePowerShellInvalidPointer (golint)
    • Line 14: warning: don't use underscores in Go names; type nativePowerShell_StringPtr should be nativePowerShellStringPtr (golint)
    • Line 15: warning: don't use underscores in Go names; type nativePowerShell_LogString should be nativePowerShellLogString (golint)
    • Line 16: warning: don't use underscores in Go names; type nativePowerShell_LogString_Holder should be nativePowerShellLogStringHolder (golint)
    • Line 30: warning: don't use underscores in Go names; type nativePowerShell_RunspaceHandle should be nativePowerShellRunspaceHandle (golint)
    • Line 31: warning: don't use underscores in Go names; type nativePowerShell_PowerShellHandle should be nativePowerShellPowerShellHandle (golint)
    • Line 32: warning: don't use underscores in Go names; type nativePowerShell_PowerShellObject should be nativePowerShellPowerShellObject (golint)
    • Line 33: warning: don't use underscores in Go names; type nativePowerShell_PowerShellObjectType should be nativePowerShellPowerShellObjectType (golint)
    • Line 37: warning: don't use underscores in Go names; const nativePowerShell_PowerShellObjectTypeString should be nativePowerShellPowerShellObjectTypeString (golint)
    • Line 38: warning: don't use underscores in Go names; const nativePowerShell_PowerShellObjectHandle should be nativePowerShellPowerShellObjectHandle (golint)
    • Line 42: warning: don't use underscores in Go names; type nativePowerShell_GenericPowerShellObject should be nativePowerShellGenericPowerShellObject (golint)
    • Line 48: warning: don't use underscores in Go names; type nativePowerShell_JsonReturnValues should be nativePowerShellJSONReturnValues (golint)
    • Line 52: warning: don't use underscores in Go names; type nativePowerShell_ReceiveJsonCommand should be nativePowerShellReceiveJSONCommand (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!