Preparing report...

Report for github.com/GettEngineering/effe

A+    Excellent!    Found 22 issues across 49 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!


gocyclo95%

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.


golint55%

Golint is a linter for Go source code.

    • effe/strategies/generators.go
    • Line 14: warning: exported function GenWrapComponentCall should have comment or be unexported (golint)
    • Line 56: warning: exported function GenSimpleComponentCall should have comment or be unexported (golint)
    • Line 72: warning: exported function GenCaseComponentCall should have comment or be unexported (golint)
    • Line 100: warning: exported function GenDecisionComponentCall should have comment or be unexported (golint)
    • Line 203: warning: exported function GenComponentCalls should have comment or be unexported (golint)
    • effe/strategies/helpers.go
    • Line 24: warning: exported function BuildReturnStmt should have comment or be unexported (golint)
    • Line 86: warning: exported function BuildFailureReturnStmt should have comment or be unexported (golint)
    • Line 144: warning: exported function BuildMultiComponentName should have comment or be unexported (golint)
    • Line 160: warning: exported function BuildMultiComponentCall should have comment or be unexported (golint)
    • effe/testing/update.go
    • Line 15: warning: exported type Generator should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function UpdateExpectedResult should be of the form "UpdateExpectedResult ..." (golint)
    • effe/types/types.go
    • Line 11: warning: comment on exported type SimpleComponent should be of the form "SimpleComponent ..." (with optional leading article) (golint)
    • Line 21: warning: exported method SimpleComponent.Name should have comment or be unexported (golint)
    • Line 31: warning: exported method CaseComponent.Name should have comment or be unexported (golint)
    • Line 46: warning: exported method WrapComponent.Name should have comment or be unexported (golint)
    • Line 72: warning: exported method DecisionComponent.Name should have comment or be unexported (golint)
    • Line 76: warning: comment on exported type Component should be of the form "Component ..." (with optional leading article) (golint)
    • Line 92: warning: exported type LoadError should have comment or be unexported (golint)
    • effe/generator/generator.go
    • Line 15: warning: comment on exported const BuildFLowExprType should be of the form "BuildFLowExprType ..." (golint)
    • Line 41: warning: comment on exported type Drawer should be of the form "Drawer ..." (with optional leading article) (golint)
    • Line 48: warning: exported type Option should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function WithLoader should be of the form "WithLoader ..." (golint)
    • Line 72: warning: comment on exported function WithStrategy should be of the form "WithStrategy ..." (golint)
    • Line 79: warning: comment on exported function NewGenerator should be of the form "NewGenerator ..." (golint)
    • Line 88: warning: comment on exported method Generator.GenerateDiagram should be of the form "GenerateDiagram ..." (golint)
    • Line 194: warning: comment on exported method Generator.Generate should be of the form "Generate ..." (golint)
    • effe/plugins/log.go
    • Line 57: warning: comment on exported function NewLogPlugin should be of the form "NewLogPlugin ..." (golint)
    • effe/strategies/chain.go
    • Line 12: warning: exported type Chain should have comment or be unexported (golint)
    • Line 23: warning: exported type Option should have comment or be unexported (golint)
    • Line 25: warning: exported function WithServiceObjectName should have comment or be unexported (golint)
    • Line 31: warning: exported function Use should have comment or be unexported (golint)
    • Line 37: warning: exported type Generator should have comment or be unexported (golint)
    • Line 39: warning: exported function Default should have comment or be unexported (golint)
    • Line 91: warning: exported function NewChain should have comment or be unexported (golint)
    • effe/plugins/history.go
    • Line 20: warning: comment on exported type History should be of the form "History ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported function NewHistoryImpl should be of the form "NewHistoryImpl ..." (golint)
    • Line 104: warning: comment on exported function NewHistory should be of the form "NewHistory ..." (golint)
    • effe/loaders/consts.go
    • Line 6: warning: comment on exported const WrapExprType should be of the form "WrapExprType ..." (golint)
    • Line 8: warning: exported const BeforeExprType should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: comment on exported const DecisionExprType should be of the form "DecisionExprType ..." (golint)
    • Line 15: warning: comment on exported const StepExprType should be of the form "StepExprType ..." (golint)
    • Line 21: warning: exported var ErrNoExpr should have comment or be unexported (golint)
    • effe/loaders/helpers.go
    • Line 10: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 56: warning: exported function ParseAndRemoveServiceComponents should have comment or be unexported (golint)
    • Line 77: warning: exported function RemoveExprByIndex should have comment or be unexported (golint)
    • Line 83: warning: exported function FindCallExprWithType should have comment or be unexported (golint)
    • Line 115: warning: exported function NewComponentsFromArgs should have comment or be unexported (golint)
    • effe/testcustomization/testcustomization.go
    • Line 16: warning: exported function POST should have comment or be unexported (golint)
    • Line 20: warning: exported type PostRequestComponent should have comment or be unexported (golint)
    • Line 24: warning: exported method PostRequestComponent.Name should have comment or be unexported (golint)
    • Line 51: warning: exported function LoadPostRequestComponent should have comment or be unexported (golint)
    • Line 57: warning: exported function GenPostRequestComponent should have comment or be unexported (golint)
    • effe/fields/fields.go
    • Line 11: warning: comment on exported function NewIdentWithType should be of the form "NewIdentWithType ..." (golint)
    • Line 51: warning: comment on exported function FindFieldWithType should be of the form "FindFieldWithType ..." (golint)
    • Line 61: warning: comment on exported function GetTypeStrName should be of the form "GetTypeStrName ..." (golint)
    • effe/strategies/blockcontext.go
    • Line 9: warning: exported type VarBuilder should have comment or be unexported (golint)
    • Line 11: warning: exported function NewBlockContext should have comment or be unexported (golint)
    • Line 19: warning: exported type BlockContext should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method BlockContext.CalculateInput should be of the form "CalculateInput ..." (golint)
    • Line 54: warning: exported method BlockContext.OutputList should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method BlockContext.CalculateOutput should be of the form "CalculateOutput ..." (golint)
    • Line 96: warning: exported method BlockContext.FindInputByType should have comment or be unexported (golint)
    • Line 100: warning: exported method BlockContext.AddInput should have comment or be unexported (golint)
    • Line 126: warning: exported method BlockContext.BuildInputVars should have comment or be unexported (golint)
    • Line 141: warning: exported method BlockContext.BuildOutputVars should have comment or be unexported (golint)
    • effe/effe.go
    • Line 12: warning: comment on exported type StepFunc should be of the form "StepFunc ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type CaseKey should be of the form "CaseKey ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported function BuildFlow should be of the form "BuildFlow ..." (golint)
    • Line 28: warning: comment on exported function Step should be of the form "Step ..." (golint)
    • Line 64: warning: comment on exported function Failure should be of the form "Failure ..." (golint)
    • Line 94: warning: comment on exported function Success should be of the form "Success ..." (golint)
    • Line 102: warning: comment on exported function Before should be of the form "Before ..." (golint)
    • Line 145: warning: comment on exported function Case should be of the form "Case ..." (golint)
    • effe/drawer/drawer.go
    • Line 43: warning: comment on exported function NewDrawer should be of the form "NewDrawer ..." (golint)
    • Line 50: warning: comment on exported type ComponentStmt should be of the form "ComponentStmt ..." (with optional leading article) (golint)
    • effe/loaders/loader.go
    • Line 29: warning: comment on exported function NewLoader should be of the form "NewLoader ..." (golint)
    • Line 44: warning: exported type Option should have comment or be unexported (golint)
    • Line 140: warning: comment on exported type ComponentLoadFunc should be of the form "ComponentLoadFunc ..." (with optional leading article) (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!