Preparing report...

Report for github.com/goatcms/goatcore

A+    Excellent!    Found 52 issues across 414 files

Tweet

gofmt99%

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!


gocyclo98%

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.


golint90%

Golint is a linter for Go source code.

    • goatcore/app/terminal/termformatter/formatter.go
    • Line 10: warning: exported type BlockFormatter should have comment or be unexported (golint)
    • Line 16: warning: exported type BlockDef should have comment or be unexported (golint)
    • Line 22: warning: exported function NewBlockDef should have comment or be unexported (golint)
    • Line 39: warning: exported function NewBlockFormatter should have comment or be unexported (golint)
    • Line 57: warning: exported method BlockFormatter.PrintBlocks should have comment or be unexported (golint)
    • Line 103: warning: exported method BlockFormatter.Println should have comment or be unexported (golint)
    • goatcore/app/terminal/command.go
    • Line 7: warning: exported type CommandParams should have comment or be unexported (golint)
    • Line 41: warning: exported method Command.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method Command.Callback should have comment or be unexported (golint)
    • Line 49: warning: exported method Command.Help should have comment or be unexported (golint)
    • Line 53: warning: exported method Command.MainArguments should have comment or be unexported (golint)
    • goatcore/app/goatapp/version.go
    • Line 10: warning: exported var NilVersion should have comment or be unexported (golint)
    • Line 13: warning: exported type Version should have comment or be unexported (golint)
    • Line 20: warning: exported function NewVersion should have comment or be unexported (golint)
    • Line 29: warning: exported method Version.Major should have comment or be unexported (golint)
    • Line 33: warning: exported method Version.Minor should have comment or be unexported (golint)
    • Line 37: warning: exported method Version.Path should have comment or be unexported (golint)
    • Line 41: warning: exported method Version.Suffix should have comment or be unexported (golint)
    • goatcore/filesystem/filespace/encryptfs/filespace.go
    • Line 41: warning: exported method EncryptFS.Copy should have comment or be unexported (golint)
    • Line 45: warning: exported method EncryptFS.CopyDirectory should have comment or be unexported (golint)
    • Line 49: warning: exported method EncryptFS.CopyFile should have comment or be unexported (golint)
    • Line 53: warning: exported method EncryptFS.ReadDir should have comment or be unexported (golint)
    • Line 57: warning: exported method EncryptFS.IsExist should have comment or be unexported (golint)
    • Line 61: warning: exported method EncryptFS.IsFile should have comment or be unexported (golint)
    • Line 65: warning: exported method EncryptFS.IsDir should have comment or be unexported (golint)
    • Line 69: warning: exported method EncryptFS.MkdirAll should have comment or be unexported (golint)
    • Line 73: warning: exported method EncryptFS.ReadFile should have comment or be unexported (golint)
    • Line 80: warning: exported method EncryptFS.WriteFile should have comment or be unexported (golint)
    • Line 87: warning: exported method EncryptFS.Filespace should have comment or be unexported (golint)
    • Line 98: warning: exported method EncryptFS.Reader should have comment or be unexported (golint)
    • Line 105: warning: exported method EncryptFS.Writer should have comment or be unexported (golint)
    • Line 112: warning: exported method EncryptFS.Remove should have comment or be unexported (golint)
    • Line 116: warning: exported method EncryptFS.RemoveAll should have comment or be unexported (golint)
    • Line 120: warning: exported method EncryptFS.Lstat should have comment or be unexported (golint)
    • goatcore/app/goatapp/health.go
    • Line 16: warning: comment on exported function NewHealthCheckers should be of the form "NewHealthCheckers ..." (golint)
    • Line 27: warning: comment on exported method HealthCheckers.HealthCheckerNames should be of the form "HealthCheckerNames ..." (golint)
    • goatcore/app/app.go
    • Line 21: warning: comment on exported type Version should be of the form "Version ..." (with optional leading article) (golint)
    • Line 45: warning: exported type AppScopes should have comment or be unexported (golint)
    • Line 52: warning: exported type AppFilespaces should have comment or be unexported (golint)
    • goatcore/app/terminal.go
    • Line 4: warning: exported const TerminalUndefinedArgument should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported function NilCommandCallback should have comment or be unexported (golint)
    • Line 42: warning: comment on exported type TerminalArguments should be of the form "TerminalArguments ..." (with optional leading article) (golint)
    • goatcore/app/gio/repeater.go
    • Line 79: warning: exported method Repeater.ReadWord should have comment or be unexported (golint)
    • Line 99: warning: exported method Repeater.ReadLine should have comment or be unexported (golint)
    • Line 165: warning: exported method Repeater.Err should have comment or be unexported (golint)
    • goatcore/app/modules/pipelinem/pipcommands/pipc/module.go
    • Line 8: warning: exported function ClearCommand should have comment or be unexported (golint)
    • Line 16: warning: exported function RunCommand should have comment or be unexported (golint)
    • Line 58: warning: exported function TryCommand should have comment or be unexported (golint)
    • Line 95: warning: exported function LogsCommand should have comment or be unexported (golint)
    • Line 103: warning: exported function SummaryCommand should have comment or be unexported (golint)
    • Line 111: warning: exported function Commands should have comment or be unexported (golint)
    • goatcore/app/scope/contextscope/isolated.go
    • Line 12: warning: comment on exported type Isolated should be of the form "Isolated ..." (with optional leading article) (golint)
    • Line 87: warning: comment on exported method Isolated.AppendError should be of the form "AppendError ..." (golint)
    • goatcore/app/terminal/termexec/run.go
    • Line 17: warning: exported type RunCtxParams should have comment or be unexported (golint)
    • Line 23: warning: exported type RunCtx should have comment or be unexported (golint)
    • Line 29: warning: exported function NewRunCtx should have comment or be unexported (golint)
    • Line 46: warning: exported function RunLoop should have comment or be unexported (golint)
    • Line 111: warning: exported function RunString should have comment or be unexported (golint)
    • Line 119: warning: exported function RunCommandFromReader should have comment or be unexported (golint)
    • Line 127: warning: exported function RunCommand should have comment or be unexported (golint)
    • goatcore/varutil/idutil/host.go
    • Line 20: warning: exported function ObfuscateHostID should have comment or be unexported (golint)
    • Line 24: warning: exported function CorrelationHostID should have comment or be unexported (golint)
    • goatcore/app/di.go
    • Line 6: warning: comment on exported type DependencyProvider should be of the form "DependencyProvider ..." (with optional leading article) (golint)
    • goatcore/app/scope/datascope/data.go
    • Line 22: warning: comment on exported method DataScope.SetValue should be of the form "SetValue ..." (golint)
    • Line 29: warning: comment on exported method DataScope.Value should be of the form "Value ..." (golint)
    • goatcore/app/goatapp/params.go
    • Line 8: warning: exported type Filespaces should have comment or be unexported (golint)
    • Line 35: warning: exported type Scopes should have comment or be unexported (golint)
    • Line 62: warning: exported type IO should have comment or be unexported (golint)
    • goatcore/app/terminal/termformatter/helpers.go
    • Line 9: warning: exported function SeparateWords should have comment or be unexported (golint)
    • Line 13: warning: exported function SeparateLines should have comment or be unexported (golint)
    • Line 32: warning: exported function ToLeft should have comment or be unexported (golint)
    • Line 43: warning: exported function ToRight should have comment or be unexported (golint)
    • Line 54: warning: exported function Justify should have comment or be unexported (golint)
    • goatcore/app/consts.go
    • Line 23: warning: comment on exported const BeforeRollbackEvent should be of the form "BeforeRollbackEvent ..." (golint)
    • Line 27: warning: comment on exported const AfterRollbackEvent should be of the form "AfterRollbackEvent ..." (golint)
    • Line 30: warning: comment on exported const BeforeCloseEvent should be of the form "BeforeCloseEvent ..." (golint)
    • Line 32: warning: comment on exported const AfterCloseEvent should be of the form "AfterCloseEvent ..." (golint)
    • goatcore/app/scope/datascope/child.go
    • Line 24: warning: comment on exported method DataChildScope.SetValue should be of the form "SetValue ..." (golint)
    • Line 31: warning: comment on exported method DataChildScope.Value should be of the form "Value ..." (golint)
    • goatcore/app/terminal/argument.go
    • Line 7: warning: exported type ArgumentParams should have comment or be unexported (golint)
    • Line 21: warning: exported function NewArgument should have comment or be unexported (golint)
    • Line 34: warning: exported method Argument.Name should have comment or be unexported (golint)
    • Line 38: warning: exported method Argument.Help should have comment or be unexported (golint)
    • Line 42: warning: exported method Argument.Required should have comment or be unexported (golint)
    • Line 46: warning: exported method Argument.Type should have comment or be unexported (golint)
    • Line 49: warning: exported method Argument.Commands should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 3)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!