Preparing report...

Report for github.com/zworld-apps/zgui

A+    Excellent!    Found 19 issues across 28 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!


gocyclo100%

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.

No problems detected. Good job!


golint35%

Golint is a linter for Go source code.

    • zgui/events/observer.go
    • Line 9: warning: exported type IObserver should have comment or be unexported (golint)
    • Line 14: warning: exported type ISubject should have comment or be unexported (golint)
    • Line 20: warning: exported type Subject should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSubject should have comment or be unexported (golint)
    • Line 28: warning: exported method Subject.Attach should have comment or be unexported (golint)
    • Line 32: warning: exported method Subject.Detach should have comment or be unexported (golint)
    • Line 36: warning: exported method Subject.Notify should have comment or be unexported (golint)
    • Line 42: warning: exported type Observer should have comment or be unexported (golint)
    • Line 46: warning: exported function NewObserver should have comment or be unexported (golint)
    • Line 58: warning: exported method Observer.On should have comment or be unexported (golint)
    • Line 68: warning: exported method Observer.Notify should have comment or be unexported (golint)
    • zgui/component_label.go
    • Line 9: warning: exported type TextOptions should have comment or be unexported (golint)
    • Line 13: warning: exported function NewTextOptions should have comment or be unexported (golint)
    • Line 19: warning: exported type LabelComponent should have comment or be unexported (golint)
    • Line 25: warning: exported function NewLabelComponent should have comment or be unexported (golint)
    • Line 33: warning: exported method LabelComponent.Draw should have comment or be unexported (golint)
    • zgui/component_slider.go
    • Line 8: warning: exported type SliderOptions should have comment or be unexported (golint)
    • Line 12: warning: exported type SliderComponent should have comment or be unexported (golint)
    • Line 21: warning: exported function NewSliderComponent should have comment or be unexported (golint)
    • zgui/constraint_pixel.go
    • Line 23: warning: comment on exported method PixelConstraint.GetY should be of the form "GetY ..." (golint)
    • Line 28: warning: comment on exported method PixelConstraint.GetWidth should be of the form "GetWidth ..." (golint)
    • Line 33: warning: comment on exported method PixelConstraint.GetHeight should be of the form "GetHeight ..." (golint)
    • zgui/constraints.go
    • Line 29: warning: exported method Constraints.SetX should have comment or be unexported (golint)
    • Line 33: warning: exported method Constraints.SetY should have comment or be unexported (golint)
    • Line 37: warning: exported method Constraints.SetWidth should have comment or be unexported (golint)
    • Line 41: warning: exported method Constraints.SetHeight should have comment or be unexported (golint)
    • Line 45: warning: exported method Constraints.GetParentBounds should have comment or be unexported (golint)
    • Line 52: warning: exported method Constraints.GetX should have comment or be unexported (golint)
    • Line 56: warning: exported method Constraints.GetY should have comment or be unexported (golint)
    • Line 60: warning: exported method Constraints.GetWidth should have comment or be unexported (golint)
    • Line 64: warning: exported method Constraints.GetHeight should have comment or be unexported (golint)
    • Line 68: warning: exported method Constraints.GetBounds should have comment or be unexported (golint)
    • Line 83: warning: exported method Constraints.GetXConstraint should have comment or be unexported (golint)
    • Line 87: warning: exported method Constraints.GetYConstraint should have comment or be unexported (golint)
    • Line 91: warning: exported method Constraints.GetWidthConstraint should have comment or be unexported (golint)
    • Line 95: warning: exported method Constraints.GetHeightConstraint should have comment or be unexported (golint)
    • zgui/component_checkbox.go
    • Line 7: warning: exported type CheckboxOptions should have comment or be unexported (golint)
    • Line 12: warning: exported type CheckboxComponent should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCheckboxComponent should have comment or be unexported (golint)
    • Line 43: warning: exported method CheckboxComponent.Toggle should have comment or be unexported (golint)
    • Line 47: warning: exported method CheckboxComponent.IsChecked should have comment or be unexported (golint)
    • Line 51: warning: exported method CheckboxComponent.SetChecked should have comment or be unexported (golint)
    • zgui/component_textfield.go
    • Line 12: warning: exported type TextFieldOptions should have comment or be unexported (golint)
    • Line 25: warning: exported type TextFieldComponent should have comment or be unexported (golint)
    • Line 41: warning: exported function NewTextFieldComponent should have comment or be unexported (golint)
    • Line 69: warning: exported method TextFieldComponent.SetState should have comment or be unexported (golint)
    • Line 101: warning: exported method TextFieldComponent.Update should have comment or be unexported (golint)
    • Line 133: warning: receiver name b should be consistent with previous receiver name tf for TextFieldComponent (golint)
    • zgui/component_window.go
    • Line 10: warning: exported type WindowOptions should have comment or be unexported (golint)
    • Line 16: warning: exported type WindowComponent should have comment or be unexported (golint)
    • Line 28: warning: exported function NewWindowComponent should have comment or be unexported (golint)
    • Line 87: warning: exported method WindowComponent.Open should have comment or be unexported (golint)
    • Line 92: warning: exported method WindowComponent.Close should have comment or be unexported (golint)
    • Line 97: warning: exported method WindowComponent.Update should have comment or be unexported (golint)
    • Line 108: warning: exported method WindowComponent.Add should have comment or be unexported (golint)
    • zgui/alignment.go
    • Line 3: warning: exported type Alignment should have comment or be unexported (golint)
    • Line 6: warning: exported const AlignStart should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type Direction should have comment or be unexported (golint)
    • Line 14: warning: exported const DirRow should have comment (or a comment on this block) or be unexported (golint)
    • zgui/component_panel.go
    • Line 7: warning: exported type PanelOptions should have comment or be unexported (golint)
    • Line 11: warning: exported type PanelComponent should have comment or be unexported (golint)
    • Line 21: warning: exported function NewPanelComponent should have comment or be unexported (golint)
    • Line 84: warning: exported method PanelComponent.Add should have comment or be unexported (golint)
    • zgui/constraint_related.go
    • Line 25: warning: exported method RelatedConstraint.GetX should have comment or be unexported (golint)
    • Line 29: warning: exported method RelatedConstraint.GetY should have comment or be unexported (golint)
    • Line 33: warning: exported method RelatedConstraint.GetWidth should have comment or be unexported (golint)
    • Line 37: warning: exported method RelatedConstraint.GetHeight should have comment or be unexported (golint)
    • zgui/component_box.go
    • Line 9: warning: exported type BoxOptions should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBoxOptions should have comment or be unexported (golint)
    • Line 27: warning: exported type BoxComponent should have comment or be unexported (golint)
    • Line 32: warning: exported function NewBoxComponent should have comment or be unexported (golint)
    • Line 39: warning: exported method BoxComponent.Draw should have comment or be unexported (golint)
    • Line 59: warning: exported type LineBoxComponent should have comment or be unexported (golint)
    • Line 64: warning: exported function NewLineBoxComponent should have comment or be unexported (golint)
    • Line 71: warning: exported method LineBoxComponent.Draw should have comment or be unexported (golint)
    • zgui/component_button.go
    • Line 9: warning: exported type ButtonOptions should have comment or be unexported (golint)
    • Line 15: warning: exported type ButtonComponent should have comment or be unexported (golint)
    • Line 22: warning: exported function NewButtonComponent should have comment or be unexported (golint)
    • zgui/constraint_relative.go
    • Line 23: warning: exported method RelativeConstraint.SetRelativeValue should have comment or be unexported (golint)
    • Line 27: warning: exported method RelativeConstraint.SetOperation should have comment or be unexported (golint)
    • zgui/interfaces.go
    • Line 9: warning: exported type IDrawable should have comment or be unexported (golint)
    • Line 13: warning: exported type IUpdateable should have comment or be unexported (golint)
    • Line 17: warning: exported type IPosition should have comment or be unexported (golint)
    • Line 22: warning: exported type IContainer should have comment or be unexported (golint)
    • Line 29: warning: exported type IConstraint should have comment or be unexported (golint)
    • Line 40: warning: exported type IConstraints should have comment or be unexported (golint)
    • Line 62: warning: exported type IComponent should have comment or be unexported (golint)
    • zgui/states.go
    • Line 9: warning: exported type GuiState should have comment or be unexported (golint)
    • Line 12: warning: exported const StateNormal should have comment (or a comment on this block) 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!


misspell96%

Misspell Finds commonly misspelled English words

    • zgui/constraint_base.go
    • Line 33: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 38: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 43: warning: "overriden" is a misspelling of "overridden" (misspell)
    • Line 48: warning: "overriden" is a misspelling of "overridden" (misspell)