Preparing report...

Report for github.com/wesovilabs/orion

A+    Excellent!    Found 62 issues across 133 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!


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.


golint54%

Golint is a linter for Go source code.

    • orion/actions/http/internal/executor/http.go
    • Line 21: warning: exported var DefaultHTTPConnection should have comment or be unexported (golint)
    • Line 26: warning: exported var DefaultCookie should have comment or be unexported (golint)
    • Line 33: warning: exported type HTTP should have comment or be unexported (golint)
    • Line 45: warning: exported type Cookie should have comment or be unexported (golint)
    • Line 52: warning: exported type Connection should have comment or be unexported (golint)
    • Line 57: warning: exported type Auth should have comment or be unexported (golint)
    • Line 101: warning: exported method HTTP.Execute should have comment or be unexported (golint)
    • orion/actions/mongo/action.go
    • Line 33: warning: exported type Mongo should have comment or be unexported (golint)
    • Line 41: warning: exported method Mongo.SetQuery should have comment or be unexported (golint)
    • Line 45: warning: exported method Mongo.SetOperation should have comment or be unexported (golint)
    • Line 49: warning: exported method Mongo.CreteContext should have comment or be unexported (golint)
    • Line 66: warning: exported method Mongo.Filter should have comment or be unexported (golint)
    • Line 80: warning: exported method Mongo.Operation should have comment or be unexported (golint)
    • Line 84: warning: exported method Mongo.Execute should have comment or be unexported (golint)
    • orion/actions/http/internal/decoder/cookie.go
    • Line 16: warning: exported type Cookie should have comment or be unexported (golint)
    • Line 23: warning: exported method Cookie.SetName should have comment or be unexported (golint)
    • Line 27: warning: exported method Cookie.Name should have comment or be unexported (golint)
    • Line 31: warning: exported method Cookie.SetValue should have comment or be unexported (golint)
    • Line 35: warning: exported method Cookie.Value should have comment or be unexported (golint)
    • Line 39: warning: exported method Cookie.SetPath should have comment or be unexported (golint)
    • Line 43: warning: exported method Cookie.Path should have comment or be unexported (golint)
    • Line 47: warning: exported method Cookie.SetDomain should have comment or be unexported (golint)
    • Line 51: warning: exported method Cookie.Domain should have comment or be unexported (golint)
    • orion/actions/http/internal/decoder/payload.go
    • Line 21: warning: exported type Payload should have comment or be unexported (golint)
    • Line 26: warning: exported method Payload.SetType should have comment or be unexported (golint)
    • Line 30: warning: exported method Payload.Type should have comment or be unexported (golint)
    • Line 34: warning: exported method Payload.SetData should have comment or be unexported (golint)
    • Line 38: warning: exported method Payload.Data should have comment or be unexported (golint)
    • orion/dsl/feature.go
    • Line 39: warning: exported method Feature.Path should have comment or be unexported (golint)
    • Line 43: warning: exported method Feature.SetPath should have comment or be unexported (golint)
    • Line 47: warning: exported method Feature.Join should have comment or be unexported (golint)
    • Line 76: warning: exported method Feature.Description should have comment or be unexported (golint)
    • Line 80: warning: exported method Feature.Vars should have comment or be unexported (golint)
    • Line 84: warning: exported method Feature.LoadVariables should have comment or be unexported (golint)
    • Line 91: warning: exported method Feature.AddScenario should have comment or be unexported (golint)
    • Line 98: warning: exported method Feature.Scenarios should have comment or be unexported (golint)
    • Line 102: warning: exported method Feature.Includes should have comment or be unexported (golint)
    • Line 106: warning: exported method Feature.Input should have comment or be unexported (golint)
    • Line 110: warning: exported method Feature.BeforeHooksByTag should have comment or be unexported (golint)
    • Line 118: warning: exported method Feature.AfterHooksByTag should have comment or be unexported (golint)
    • Line 137: warning: exported method Feature.Functions should have comment or be unexported (golint)
    • Line 146: warning: exported function DecodeFeature should have comment or be unexported (golint)
    • orion/dsl/vars.go
    • Line 12: warning: exported type VarsList should have comment or be unexported (golint)
    • Line 14: warning: exported type Vars should have comment or be unexported (golint)
    • Line 16: warning: exported method Vars.Append should have comment or be unexported (golint)
    • Line 30: warning: exported method Vars.To should have comment or be unexported (golint)
    • orion/actions/mongo/internal/decoder/decoder.go
    • Line 9: warning: exported const BlockConnection should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported function DecodeConnection should have comment or be unexported (golint)
    • Line 123: warning: exported function DecodeQuery should have comment or be unexported (golint)
    • orion/actions/http/internal/decoder/request.go
    • Line 10: warning: exported type Request should have comment or be unexported (golint)
    • Line 20: warning: exported method Request.BaseURL should have comment or be unexported (golint)
    • Line 24: warning: exported method Request.SetBaseURL should have comment or be unexported (golint)
    • Line 28: warning: exported method Request.Path should have comment or be unexported (golint)
    • Line 32: warning: exported method Request.SetPath should have comment or be unexported (golint)
    • Line 36: warning: exported method Request.AddQueryParams should have comment or be unexported (golint)
    • Line 45: warning: exported method Request.AddHeaders should have comment or be unexported (golint)
    • Line 54: warning: exported method Request.BodyData should have comment or be unexported (golint)
    • Line 61: warning: exported method Request.Cookies should have comment or be unexported (golint)
    • Line 88: warning: exported method Request.Connection should have comment or be unexported (golint)
    • Line 103: warning: exported method Request.Headers should have comment or be unexported (golint)
    • Line 132: warning: exported method Request.QueryParams should have comment or be unexported (golint)
    • orion/helper/attributes.go
    • Line 1: warning: package comment should be of the form "Package helper ..." (golint)
    • Line 54: warning: comment on exported function EvaluateArrayItemExpression should be of the form "EvaluateArrayItemExpression ..." (golint)
    • orion/internal/errors/custom.go
    • Line 23: warning: exported function ThrowUnsupportedBlocks should have comment or be unexported (golint)
    • Line 27: warning: exported function ThrowUnsupportedArguments should have comment or be unexported (golint)
    • Line 31: warning: exported function ThrowsExceededNumberOfBlocks should have comment or be unexported (golint)
    • orion/dsl/body.go
    • Line 15: warning: exported type Body should have comment or be unexported (golint)
    • Line 19: warning: exported method Body.Actions should have comment or be unexported (golint)
    • orion/dsl/hook.go
    • Line 22: warning: exported const HookBefore should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type Hooks should have comment or be unexported (golint)
    • Line 29: warning: exported type Hook should have comment or be unexported (golint)
    • Line 36: warning: exported method Hook.TotalActions should have comment or be unexported (golint)
    • Line 47: warning: exported method Hook.Execute should have comment or be unexported (golint)
    • orion/actions/mongo/decoder.go
    • Line 15: warning: exported const BlockMongo should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 40: warning: exported method Decoder.DecodeBlock should have comment or be unexported (golint)
    • orion/actions/mongo/internal/decoder/connection.go
    • Line 19: warning: exported type Connection should have comment or be unexported (golint)
    • Line 25: warning: exported method Connection.SetURI should have comment or be unexported (golint)
    • Line 29: warning: exported method Connection.SetTimeout should have comment or be unexported (golint)
    • Line 33: warning: exported method Connection.SetAuth should have comment or be unexported (golint)
    • Line 37: warning: exported method Connection.Timeout should have comment or be unexported (golint)
    • Line 41: warning: exported method Connection.ClientOpts should have comment or be unexported (golint)
    • orion/actions/http/internal/decoder/decoder.go
    • Line 10: warning: exported const BlockHTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: exported function DecodeRequest should have comment or be unexported (golint)
    • Line 247: warning: exported function DecodeResponse should have comment or be unexported (golint)
    • orion/dsl/arg.go
    • Line 17: warning: exported type Args should have comment or be unexported (golint)
    • Line 19: warning: exported type Arg should have comment or be unexported (golint)
    • Line 25: warning: exported method Arg.Execute should have comment or be unexported (golint)
    • orion/dsl/return.go
    • Line 20: warning: exported type Return should have comment or be unexported (golint)
    • Line 24: warning: exported method Return.Value should have comment or be unexported (golint)
    • orion/dsl/scenario.go
    • Line 45: warning: exported method Scenario.ContinueOnError should have comment or be unexported (golint)
    • Line 57: warning: exported method Scenario.Validate should have comment or be unexported (golint)
    • Line 88: warning: exported method Scenario.Tags should have comment or be unexported (golint)
    • Line 92: warning: exported method Scenario.Sections should have comment or be unexported (golint)
    • Line 96: warning: exported method Scenario.Examples should have comment or be unexported (golint)
    • Line 120: warning: exported method Scenario.Execute should have comment or be unexported (golint)
    • Line 139: warning: exported method Scenario.IsIgnored should have comment or be unexported (golint)
    • Line 151: warning: exported method Scenario.IsContainingAnyTag should have comment or be unexported (golint)
    • orion/actions/mongo/internal/decoder/auth.go
    • Line 38: warning: exported type Auth should have comment or be unexported (golint)
    • Line 44: warning: exported method Auth.SetUsername should have comment or be unexported (golint)
    • Line 48: warning: exported method Auth.SetPassword should have comment or be unexported (golint)
    • Line 52: warning: exported method Auth.Mechanism should have comment or be unexported (golint)
    • Line 56: warning: exported method Auth.Username should have comment or be unexported (golint)
    • Line 60: warning: exported method Auth.Password should have comment or be unexported (golint)
    • orion/executor/executor.go
    • Line 17: warning: exported type Executor should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • orion/dsl/functions.go
    • Line 20: warning: exported type Functions should have comment or be unexported (golint)
    • Line 22: warning: exported type Function should have comment or be unexported (golint)
    • Line 29: warning: exported method Function.Input should have comment or be unexported (golint)
    • Line 33: warning: exported method Function.Body should have comment or be unexported (golint)
    • Line 37: warning: exported method Function.Return should have comment or be unexported (golint)
    • Line 123: warning: exported method Functions.Append should have comment or be unexported (golint)
    • orion/actions/sleep/action.go
    • Line 16: warning: exported type Sleep should have comment or be unexported (golint)
    • Line 21: warning: exported method Sleep.SetDuration should have comment or be unexported (golint)
    • Line 25: warning: exported method Sleep.Duration should have comment or be unexported (golint)
    • orion/actions/http/decoder.go
    • Line 11: warning: exported const BlockHTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 35: warning: exported method Decoder.DecodeBlock should have comment or be unexported (golint)
    • orion/actions/action.go
    • Line 13: warning: exported type Actions should have comment or be unexported (golint)
    • Line 98: warning: exported method Base.ShouldExecute should have comment or be unexported (golint)
    • orion/actions/http/action.go
    • Line 18: warning: exported type HTTP should have comment or be unexported (golint)
    • Line 25: warning: exported method HTTP.SetMethod should have comment or be unexported (golint)
    • Line 29: warning: exported method HTTP.Method should have comment or be unexported (golint)
    • Line 33: warning: exported method HTTP.SetRequest should have comment or be unexported (golint)
    • Line 37: warning: exported method HTTP.SetResponse should have comment or be unexported (golint)
    • Line 41: warning: exported method HTTP.Execute should have comment or be unexported (golint)
    • orion/actions/http/internal/decoder/connection.go
    • Line 16: warning: exported type Connection should have comment or be unexported (golint)
    • Line 21: warning: exported method Connection.SetTimeout should have comment or be unexported (golint)
    • Line 25: warning: exported method Connection.Timeout should have comment or be unexported (golint)
    • Line 30: warning: exported method Connection.SetProxy should have comment or be unexported (golint)
    • Line 34: warning: exported method Connection.Proxy should have comment or be unexported (golint)
    • orion/actions/shared/parse.go
    • Line 9: warning: exported function GetBodyContent should have comment or be unexported (golint)
    • Line 28: warning: exported function CreatePos should have comment or be unexported (golint)
    • orion/testutil/hcl.go
    • Line 12: warning: exported function GetBodyContent should have comment or be unexported (golint)
    • Line 31: warning: exported function GetAttributes should have comment or be unexported (golint)
    • Line 44: warning: exported function GetAttributesFromText should have comment or be unexported (golint)
    • Line 53: warning: exported function MapStringAttributeToStringExpression should have comment or be unexported (golint)
    • orion/actions/mongo/internal/decoder/query.go
    • Line 15: warning: exported type Filter should have comment or be unexported (golint)
    • Line 19: warning: exported type Set should have comment or be unexported (golint)
    • Line 23: warning: exported type Document should have comment or be unexported (golint)
    • Line 27: warning: exported type Query should have comment or be unexported (golint)
    • Line 36: warning: exported method Query.HasSet should have comment or be unexported (golint)
    • Line 40: warning: exported method Query.SetDatabase should have comment or be unexported (golint)
    • Line 44: warning: exported method Query.SetCollection should have comment or be unexported (golint)
    • Line 48: warning: exported method Query.SetLimit should have comment or be unexported (golint)
    • Line 52: warning: exported method Query.Database should have comment or be unexported (golint)
    • Line 56: warning: exported method Query.Collection should have comment or be unexported (golint)
    • Line 60: warning: exported method Query.Limit should have comment or be unexported (golint)
    • Line 64: warning: exported method Query.Filter should have comment or be unexported (golint)
    • Line 71: warning: exported method Query.Set should have comment or be unexported (golint)
    • Line 78: warning: exported method Query.Documents should have comment or be unexported (golint)
    • orion/internal/config/config.go
    • Line 17: warning: exported var DefaultPath should have comment or be unexported (golint)
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 46: warning: exported function Get should have comment or be unexported (golint)
    • orion/dsl/include.go
    • Line 17: warning: exported type Includes should have comment or be unexported (golint)
    • Line 19: warning: exported type Include should have comment or be unexported (golint)
    • Line 24: warning: exported method Include.IsFile should have comment or be unexported (golint)
    • Line 28: warning: exported method Include.Path should have comment or be unexported (golint)
    • orion/dsl/section.go
    • Line 16: warning: exported type Sections should have comment or be unexported (golint)
    • Line 22: warning: exported type Section should have comment or be unexported (golint)
    • orion/actions/mongo/internal/decoder/common.go
    • Line 9: warning: exported type BlockProperties should have comment or be unexported (golint)
    • Line 13: warning: exported method BlockProperties.SetValues should have comment or be unexported (golint)
    • Line 23: warning: exported method BlockProperties.Values should have comment or be unexported (golint)
    • Line 35: warning: exported method BlockProperties.Evaluate should have comment or be unexported (golint)
    • Line 39: warning: exported function NewBlockProperties should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!