Preparing report...

Report for github.com/webability-go/wajaf

A    Great!    Found 45 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!


golint8%

Golint is a linter for Go source code.

    • wajaf/imageelement.go
    • Line 3: warning: exported type ImageElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewImageElement should have comment or be unexported (golint)
    • wajaf/lovfieldelement.go
    • Line 3: warning: exported type LOVFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewLOVFieldElement should have comment or be unexported (golint)
    • wajaf/matrixcontainer.go
    • Line 3: warning: exported type MatrixContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMatrixContainer should have comment or be unexported (golint)
    • Line 21: warning: exported method MatrixContainer.NewZone should have comment or be unexported (golint)
    • Line 27: warning: exported type MatrixZone should have comment or be unexported (golint)
    • Line 29: warning: exported function NewMatrixZone should have comment or be unexported (golint)
    • Line 40: warning: exported method MatrixContainer.NewTemplate should have comment or be unexported (golint)
    • Line 46: warning: exported type MatrixTemplate should have comment or be unexported (golint)
    • Line 48: warning: exported function NewMatrixTemplate should have comment or be unexported (golint)
    • Line 60: warning: exported method MatrixContainer.NewDataset should have comment or be unexported (golint)
    • Line 66: warning: exported type MatrixDataset should have comment or be unexported (golint)
    • Line 68: warning: exported function NewMatrixDataset should have comment or be unexported (golint)
    • wajaf/node.go
    • Line 12: warning: exported type NodeDef should have comment or be unexported (golint)
    • Line 42: warning: exported type Attributes should have comment or be unexported (golint)
    • Line 44: warning: exported type Node should have comment or be unexported (golint)
    • Line 56: warning: exported function NewNode should have comment or be unexported (golint)
    • Line 69: warning: exported method Node.RegisterKnownAttributes should have comment or be unexported (golint)
    • Line 76: warning: exported method Node.RegisterKnownChildren should have comment or be unexported (golint)
    • Line 83: warning: exported method Node.SetID should have comment or be unexported (golint)
    • Line 87: warning: exported method Node.SetData should have comment or be unexported (golint)
    • Line 91: warning: exported method Node.GetID should have comment or be unexported (golint)
    • Line 95: warning: exported method Node.GetSuperType should have comment or be unexported (golint)
    • Line 99: warning: exported method Node.GetType should have comment or be unexported (golint)
    • Line 103: warning: exported method Node.GetData should have comment or be unexported (golint)
    • Line 109: warning: exported method Node.SetAttribute should have comment or be unexported (golint)
    • Line 117: warning: exported method Node.SetAttributes should have comment or be unexported (golint)
    • Line 127: warning: exported method Node.GetAttribute should have comment or be unexported (golint)
    • Line 134: warning: exported method Node.GetAttributes should have comment or be unexported (golint)
    • Line 138: warning: exported method Node.AddHelp should have comment or be unexported (golint)
    • Line 157: warning: exported method Node.AddMessage should have comment or be unexported (golint)
    • Line 165: warning: exported method Node.AddEvent should have comment or be unexported (golint)
    • Line 175: warning: exported method Node.AddChild should have comment or be unexported (golint)
    • Line 185: warning: exported method Node.GetChildren should have comment or be unexported (golint)
    • Line 201: warning: exported method Node.GoString should have comment or be unexported (golint)
    • Line 213: warning: exported method Node.DecodeAttributes should have comment or be unexported (golint)
    • Line 227: warning: exported method Node.UnmarshalXML should have comment or be unexported (golint)
    • Line 254: warning: exported method Node.MarshalXML should have comment or be unexported (golint)
    • Line 283: warning: exported method Node.UnmarshalJSON should have comment or be unexported (golint)
    • Line 287: warning: exported method Node.MarshalJSON should have comment or be unexported (golint)
    • wajaf/accordioncontainer.go
    • Line 3: warning: exported type AccordionContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewAccordionContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method AccordionContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type AccordionZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewAccordionZone should have comment or be unexported (golint)
    • wajaf/barcontainer.go
    • Line 3: warning: exported type BarContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewBarContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method BarContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type BarZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewBarZone should have comment or be unexported (golint)
    • wajaf/floatingcontainer.go
    • Line 3: warning: exported type FloatingContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewFloatingContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method FloatingContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type FloatingZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewFloatingZone should have comment or be unexported (golint)
    • wajaf/ggraphelement.go
    • Line 3: warning: exported type GGraphElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewGGraphElement should have comment or be unexported (golint)
    • Line 17: warning: exported type GGraphDataset should have comment or be unexported (golint)
    • Line 19: warning: exported function NewGGraphDataset should have comment or be unexported (golint)
    • wajaf/hiddenfieldelement.go
    • Line 3: warning: exported type HiddenFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewHiddenFieldElement should have comment or be unexported (golint)
    • wajaf/codeelement.go
    • Line 3: warning: exported type CodeElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewCodeElement should have comment or be unexported (golint)
    • wajaf/dateselectorelement.go
    • Line 3: warning: exported type DateSelectorElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewDateSelectorElement should have comment or be unexported (golint)
    • wajaf/expandablecontainer.go
    • Line 3: warning: exported type ExpandableContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewExpandableContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method ExpandableContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type ExpandableZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewExpandableZone should have comment or be unexported (golint)
    • wajaf/filefieldelement.go
    • Line 3: warning: exported type FileFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewFileFieldElement should have comment or be unexported (golint)
    • wajaf/simplecontainer.go
    • Line 3: warning: exported type SimpleContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewSimpleContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method SimpleContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type SimpleZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewSimpleZone should have comment or be unexported (golint)
    • wajaf/tablecontainer.go
    • Line 3: warning: exported type TableContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewTableContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method TableContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type TableZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewTableZone should have comment or be unexported (golint)
    • wajaf/treecontainer.go
    • Line 3: warning: exported type TreeContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewTreeContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method TreeContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type TreeZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewTreeZone should have comment or be unexported (golint)
    • Line 39: warning: exported method TreeContainer.NewTemplate should have comment or be unexported (golint)
    • Line 45: warning: exported type TreeTemplate should have comment or be unexported (golint)
    • Line 47: warning: exported function NewTreeTemplate should have comment or be unexported (golint)
    • Line 59: warning: exported method TreeContainer.NewDataset should have comment or be unexported (golint)
    • Line 65: warning: exported type TreeDataset should have comment or be unexported (golint)
    • Line 67: warning: exported function NewTreeDataset should have comment or be unexported (golint)
    • wajaf/resources/container.go
    • Line 3: warning: exported type Container should have comment or be unexported (golint)
    • Line 5: warning: exported var ResourcesContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewContainer should have comment or be unexported (golint)
    • Line 11: warning: exported method Container.Set should have comment or be unexported (golint)
    • Line 15: warning: exported method Container.Get should have comment or be unexported (golint)
    • wajaf/dockcontainer.go
    • Line 3: warning: exported type DockContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewDockContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method DockContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type DockZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewDockZone should have comment or be unexported (golint)
    • wajaf/event.go
    • Line 3: warning: exported type Event should have comment or be unexported (golint)
    • Line 5: warning: exported function NewEvent should have comment or be unexported (golint)
    • wajaf/settextfieldelement.go
    • Line 3: warning: exported type SetTextFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewSetTextFieldElement should have comment or be unexported (golint)
    • wajaf/textareafieldelement.go
    • Line 3: warning: exported type TextAreaFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewTextAreaFieldElement should have comment or be unexported (golint)
    • wajaf/datefieldelement.go
    • Line 3: warning: exported type DateFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewDateFieldElement should have comment or be unexported (golint)
    • wajaf/paginationelement.go
    • Line 3: warning: exported type PaginationElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewPaginationElement should have comment or be unexported (golint)
    • wajaf/separatorcontainer.go
    • Line 5: warning: exported type SeparatorContainer should have comment or be unexported (golint)
    • Line 9: warning: exported function NewSeparatorContainer should have comment or be unexported (golint)
    • Line 23: warning: exported method SeparatorContainer.NewZone should have comment or be unexported (golint)
    • Line 29: warning: exported type SeparatorZone should have comment or be unexported (golint)
    • Line 31: warning: exported function NewSeparatorZone should have comment or be unexported (golint)
    • wajaf/tabcontainer.go
    • Line 3: warning: exported type TabContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewTabContainer should have comment or be unexported (golint)
    • Line 21: warning: exported method TabContainer.NewZone should have comment or be unexported (golint)
    • Line 27: warning: exported type TabZone should have comment or be unexported (golint)
    • Line 29: warning: exported function NewTabZone should have comment or be unexported (golint)
    • wajaf/windowcontainer.go
    • Line 3: warning: exported type WindowContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewWindowContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method WindowContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type WindowZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewWindowZone should have comment or be unexported (golint)
    • wajaf/help.go
    • Line 3: warning: exported type Help should have comment or be unexported (golint)
    • Line 5: warning: exported function NewHelp should have comment or be unexported (golint)
    • wajaf/textelement.go
    • Line 3: warning: exported type TextElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewTextElement should have comment or be unexported (golint)
    • wajaf/textfieldelement.go
    • Line 3: warning: exported type TextFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewTextFieldElement should have comment or be unexported (golint)
    • wajaf/gridcontainer.go
    • Line 3: warning: exported type GridContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewGridContainer should have comment or be unexported (golint)
    • Line 21: warning: exported method GridContainer.NewZone should have comment or be unexported (golint)
    • Line 27: warning: exported type GridZone should have comment or be unexported (golint)
    • Line 29: warning: exported function NewGridZone should have comment or be unexported (golint)
    • Line 41: warning: exported method GridContainer.NewTemplate should have comment or be unexported (golint)
    • Line 47: warning: exported type GridTemplate should have comment or be unexported (golint)
    • Line 49: warning: exported function NewGridTemplate should have comment or be unexported (golint)
    • Line 61: warning: exported method GridContainer.NewDataset should have comment or be unexported (golint)
    • Line 67: warning: exported type GridDataset should have comment or be unexported (golint)
    • Line 69: warning: exported function NewGridDataset should have comment or be unexported (golint)
    • wajaf/groupcontainer.go
    • Line 3: warning: exported type GroupContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewGroupContainer should have comment or be unexported (golint)
    • Line 24: warning: exported method GroupContainer.NewZone should have comment or be unexported (golint)
    • Line 30: warning: exported type GroupZone should have comment or be unexported (golint)
    • Line 32: warning: exported function NewGroupZone should have comment or be unexported (golint)
    • Line 43: warning: exported method GroupContainer.NewDataset should have comment or be unexported (golint)
    • Line 49: warning: exported type GroupDataset should have comment or be unexported (golint)
    • Line 51: warning: exported function NewGroupDataset should have comment or be unexported (golint)
    • wajaf/hiddenelement.go
    • Line 3: warning: exported type HiddenElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewHiddenElement should have comment or be unexported (golint)
    • wajaf/mmcfieldelement.go
    • Line 3: warning: exported type MMCFieldElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewMMCFieldElement should have comment or be unexported (golint)
    • wajaf/application.go
    • Line 3: warning: exported type Application should have comment or be unexported (golint)
    • Line 5: warning: exported function NewApplication should have comment or be unexported (golint)
    • wajaf/buttonelement.go
    • Line 3: warning: exported type ButtonElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewButtonElement should have comment or be unexported (golint)
    • wajaf/dblistcontainer.go
    • Line 3: warning: exported type DBListContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewDBListContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method DBListContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type DBListZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewDBListZone should have comment or be unexported (golint)
    • Line 39: warning: exported method DBListContainer.NewTemplate should have comment or be unexported (golint)
    • Line 45: warning: exported type DBListTemplate should have comment or be unexported (golint)
    • Line 47: warning: exported function NewDBListTemplate should have comment or be unexported (golint)
    • Line 59: warning: exported method DBListContainer.NewDataset should have comment or be unexported (golint)
    • Line 65: warning: exported type DBListDataset should have comment or be unexported (golint)
    • Line 67: warning: exported function NewDBListDataset should have comment or be unexported (golint)
    • wajaf/widgetcontainer.go
    • Line 3: warning: exported type WidgetContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewWidgetContainer should have comment or be unexported (golint)
    • Line 21: warning: exported method WidgetContainer.NewZone should have comment or be unexported (golint)
    • Line 27: warning: exported type WidgetZone should have comment or be unexported (golint)
    • Line 29: warning: exported function NewWidgetZone should have comment or be unexported (golint)
    • Line 41: warning: exported method WidgetContainer.NewTemplate should have comment or be unexported (golint)
    • Line 47: warning: exported type WidgetTemplate should have comment or be unexported (golint)
    • Line 49: warning: exported function NewWidgetTemplate should have comment or be unexported (golint)
    • Line 61: warning: exported method WidgetContainer.NewDataset should have comment or be unexported (golint)
    • Line 67: warning: exported type WidgetDataset should have comment or be unexported (golint)
    • Line 69: warning: exported function NewWidgetDataset should have comment or be unexported (golint)
    • wajaf/htmlelement.go
    • Line 3: warning: exported type HTMLElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewHTMLElement should have comment or be unexported (golint)
    • wajaf/linkelement.go
    • Line 3: warning: exported type LinkElement should have comment or be unexported (golint)
    • Line 5: warning: exported function NewLinkElement should have comment or be unexported (golint)
    • wajaf/listcontainer.go
    • Line 3: warning: exported type ListContainer should have comment or be unexported (golint)
    • Line 7: warning: exported function NewListContainer should have comment or be unexported (golint)
    • Line 20: warning: exported method ListContainer.NewZone should have comment or be unexported (golint)
    • Line 26: warning: exported type ListZone should have comment or be unexported (golint)
    • Line 28: warning: exported function NewListZone should have comment or be unexported (golint)
    • Line 39: warning: exported method ListContainer.NewTemplate should have comment or be unexported (golint)
    • Line 45: warning: exported type ListTemplate should have comment or be unexported (golint)
    • Line 47: warning: exported function NewListTemplate should have comment or be unexported (golint)
    • Line 59: warning: exported method ListContainer.NewDataset should have comment or be unexported (golint)
    • Line 65: warning: exported type ListDataset should have comment or be unexported (golint)
    • Line 67: warning: exported function NewListDataset should have comment or be unexported (golint)
    • wajaf/message.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 5: warning: exported function NewMessage should have comment or be unexported (golint)

gocyclo97%

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.

    • wajaf/node.go
    • Line 287: warning: cyclomatic complexity 17 of function (*Node).MarshalJSON() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!