Preparing report...

Report for github.com/astranet/meshRPC

A+    Excellent!    Found 12 issues across 15 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!


gocyclo93%

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.


golint26%

Golint is a linter for Go source code.

    • meshRPC/ast.go
    • Line 8: warning: exported function NewMethodsCollection should have comment or be unexported (golint)
    • Line 26: warning: exported type MethodsCollection should have comment or be unexported (golint)
    • Line 33: warning: exported var ErrStopRange should have comment or be unexported (golint)
    • Line 35: warning: exported method MethodsCollection.ForEachMethod should have comment or be unexported (golint)
    • meshRPC/queue.go
    • Line 17: warning: exported type Queue should have comment or be unexported (golint)
    • Line 19: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 23: warning: exported method Queue.Description should have comment or be unexported (golint)
    • Line 32: warning: exported method Queue.Exec should have comment or be unexported (golint)
    • Line 61: warning: exported type QueueAction should have comment or be unexported (golint)
    • Line 68: warning: exported function CheckDirAction should have comment or be unexported (golint)
    • Line 84: warning: exported function NewDirAction should have comment or be unexported (golint)
    • Line 97: warning: exported function CreateNewFileAction should have comment or be unexported (golint)
    • Line 117: warning: exported function OverwriteFileAction should have comment or be unexported (golint)
    • Line 187: 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)
    • meshRPC/cluster/cluster.go
    • Line 8: warning: exported type ErrHandlerFunc should have comment or be unexported (golint)
    • Line 10: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 68: warning: exported type Error should have comment or be unexported (golint)
    • meshRPC/cluster/cluster_astra.go
    • Line 26: warning: exported type AstraOptions should have comment or be unexported (golint)
    • Line 42: warning: exported function NewAstraCluster should have comment or be unexported (golint)
    • Line 266: warning: exported type ServiceState should have comment or be unexported (golint)
    • Line 269: warning: exported const StateOK should have comment (or a comment on this block) or be unexported (golint)
    • meshRPC/cluster/introspect.go
    • Line 12: warning: exported type HandlerSpec should have comment or be unexported (golint)
    • Line 14: warning: exported type HTTPMethodsSpec should have comment or be unexported (golint)
    • Line 99: warning: exported type EndpointInfo should have comment or be unexported (golint)
    • Line 107: warning: exported method EndpointInfo.MethodAllowed should have comment or be unexported (golint)
    • Line 120: warning: exported method EndpointInfo.IsValidHandler should have comment or be unexported (golint)
    • meshRPC/ast_helpers.go
    • Line 162: warning: exported type Method should have comment or be unexported (golint)
    • Line 168: warning: exported type Param should have comment or be unexported (golint)
    • meshRPC/main.go
    • Line 96: warning: exported type TemplateContext should have comment or be unexported (golint)
    • Line 128: warning: exported method TemplateContext.RenderInto should have comment or be unexported (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!