Preparing report...

Report for github.com/sg3des/goatee

(v0.0.0-20180513164943-82c08d0d37e4)

A    Great!    Found 4 issues across 4 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!


golint25%

Golint is a linter for Go source code.

    • goatee_tabs.go
    • Line 30: warning: exported type Tab should have comment or be unexported (golint)
    • Line 59: warning: exported function NewTab should have comment or be unexported (golint)
    • Line 159: warning: exported method Tab.ApplyConf should have comment or be unexported (golint)
    • Line 202: warning: exported method Tab.UpdateMenuSeleted should have comment or be unexported (golint)
    • Line 232: warning: exported method Tab.Close should have comment or be unexported (golint)
    • Line 240: warning: exported method Tab.ReadFile should have comment or be unexported (golint)
    • Line 286: warning: exported const CHARSET_BINARY should have comment or be unexported (golint)
    • Line 287: warning: exported const CHARSET_UTF8 should have comment or be unexported (golint)
    • Line 288: warning: exported const CHARSET_ASCII should have comment or be unexported (golint)
    • Line 290: warning: exported method Tab.DetectEncoding should have comment or be unexported (golint)
    • Line 317: warning: exported method Tab.DetectChardet should have comment or be unexported (golint)
    • Line 326: warning: exported method Tab.ChangeEncoding should have comment or be unexported (golint)
    • Line 354: warning: exported method Tab.ChangeCurrEncoding should have comment or be unexported (golint)
    • Line 417: warning: exported method Tab.ChangeLanguage should have comment or be unexported (golint)
    • Line 432: warning: exported method Tab.DetectLanguage should have comment or be unexported (golint)
    • Line 523: warning: exported method Tab.DragAndDrop should have comment or be unexported (golint)
    • Line 528: warning: exported method Tab.DnDHandler should have comment or be unexported (golint)
    • Line 549: warning: exported method Tab.SetTabFGColor should have comment or be unexported (golint)
    • Line 557: warning: exported method Tab.Save should have comment or be unexported (golint)
    • Line 603: warning: exported method Tab.GetText should have comment or be unexported (golint)
    • Line 616: warning: exported method Tab.ClearFind should have comment or be unexported (golint)
    • Line 633: warning: exported method Tab.Find should have comment or be unexported (golint)
    • Line 706: warning: exported method Tab.FindNext should have comment or be unexported (golint)
    • Line 747: warning: exported method Tab.Highlight should have comment or be unexported (golint)
    • Line 774: warning: exported method Tab.Scroll should have comment or be unexported (golint)
    • Line 779: warning: exported method Tab.Replace should have comment or be unexported (golint)
    • goatee_ui.go
    • Line 15: warning: exported type UI should have comment or be unexported (golint)
    • Line 29: warning: exported function CreateUI should have comment or be unexported (golint)
    • Line 60: warning: exported type Menu should have comment or be unexported (golint)
    • Line 68: warning: exported function NewMenu should have comment or be unexported (golint)
    • Line 130: warning: exported method Menu.GetMenubar should have comment or be unexported (golint)
    • Line 135: warning: exported method UI.SetActions should have comment or be unexported (golint)
    • Line 226: warning: exported method UI.NewTab should have comment or be unexported (golint)
    • Line 245: warning: exported method UI.ShowTab should have comment or be unexported (golint)
    • Line 253: warning: exported method UI.TabsUpdateConf should have comment or be unexported (golint)
    • Line 259: warning: exported method UI.Open should have comment or be unexported (golint)
    • Line 267: warning: exported method UI.Save should have comment or be unexported (golint)
    • Line 282: warning: exported method UI.SaveAs should have comment or be unexported (golint)
    • Line 296: warning: exported method UI.Quit should have comment or be unexported (golint)
    • Line 303: warning: exported method UI.Find should have comment or be unexported (golint)
    • Line 306: warning: exported method UI.FindNext should have comment or be unexported (golint)
    • Line 309: warning: exported method UI.FindPrev should have comment or be unexported (golint)
    • Line 312: warning: exported method UI.ReplaceOne should have comment or be unexported (golint)
    • Line 315: warning: exported method UI.ReplaceAll should have comment or be unexported (golint)
    • Line 319: warning: exported method UI.ToggleMenuBar should have comment or be unexported (golint)
    • Line 324: warning: exported method UI.ToggleStatusBar should have comment or be unexported (golint)
    • Line 360: warning: exported method UI.LookupTab should have comment or be unexported (golint)
    • Line 370: warning: exported method UI.CloseCurrentTab should have comment or be unexported (golint)
    • Line 375: warning: exported method UI.CloseTab should have comment or be unexported (golint)
    • Line 387: warning: exported method UI.GetCurrentTab should have comment or be unexported (golint)
    • Line 419: warning: exported type Footer should have comment or be unexported (golint)
    • Line 437: warning: exported function NewFooter should have comment or be unexported (golint)
    • Line 563: warning: exported method Footer.ShowFindbar should have comment or be unexported (golint)
    • Line 572: warning: exported method Footer.ShowReplbar should have comment or be unexported (golint)
    • Line 581: warning: exported method Footer.Close should have comment or be unexported (golint)
    • Line 585: warning: exported method UI.FooterClose should have comment or be unexported (golint)
    • goatee_conf.go
    • Line 269: warning: exported method Conf.CloseWindow should have comment or be unexported (golint)
    • Line 275: warning: exported type ConfWidget should have comment or be unexported (golint)
    • Line 288: warning: exported method ConfWidget.UpdateValue should have comment or be unexported (golint)
    • Line 313: warning: exported method ConfWidget.GetWidget should have comment or be unexported (golint)
    • Line 332: warning: exported method Conf.FormatName should have comment or be unexported (golint)

gocyclo75%

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.

    • goatee_tabs.go
    • Line 432: warning: cyclomatic complexity 21 of function (*Tab).DetectLanguage() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license0%

Checks whether your project has a LICENSE file.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!