Report for github.com/hymkor/expect

(v0.6.1)

A+    Excellent!    Found 5 issues across 15 files

Tweet

gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint66%

Golint is a linter for Go source code.

    • internal/go-console/input/consoleinput.go
    • Line 11: warning: exported type Handle should have comment or be unexported (golint)
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 17: warning: exported method Handle.Close should have comment or be unexported (golint)
    • Line 21: warning: exported method Handle.GetConsoleMode should have comment or be unexported (golint)
    • Line 27: warning: exported method Handle.SetConsoleMode should have comment or be unexported (golint)
    • Line 33: warning: exported method Handle.FlushConsoleInputBuffer should have comment or be unexported (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 44: warning: exported method Handle.GetNumberOfEvent should have comment or be unexported (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 57: warning: exported method Handle.WaitForSingleObject should have comment or be unexported (golint)
    • internal/go-console/input/read.go
    • Line 14: warning: exported type InputRecord should have comment or be unexported (golint)
    • Line 30: warning: exported type KeyEventRecord should have comment or be unexported (golint)
    • Line 39: warning: exported method InputRecord.KeyEvent should have comment or be unexported (golint)
    • Line 43: warning: exported type MouseEventRecord should have comment or be unexported (golint)
    • Line 51: warning: exported method InputRecord.MouseEvent should have comment or be unexported (golint)
    • Line 65: warning: exported method InputRecord.ResizeEvent should have comment or be unexported (golint)
    • internal/go-console/handle.go
    • Line 15: warning: exported method CoordT.X should have comment or be unexported (golint)
    • Line 16: warning: exported method CoordT.Y should have comment or be unexported (golint)
    • Line 17: warning: exported method CoordT.XY should have comment or be unexported (golint)
    • Line 27: warning: exported function LeftTopRightBottom should have comment or be unexported (golint)
    • Line 35: warning: exported method SmallRectT.Left should have comment or be unexported (golint)
    • Line 36: warning: exported method SmallRectT.Top should have comment or be unexported (golint)
    • Line 37: warning: exported method SmallRectT.Right should have comment or be unexported (golint)
    • Line 38: warning: exported method SmallRectT.Bottom should have comment or be unexported (golint)
    • Line 43: warning: exported var Kernel32 should have comment or be unexported (golint)
    • Line 48: warning: comment on exported function Out should be of the form "Out ..." (golint)
    • Line 56: warning: exported function In should have comment or be unexported (golint)
    • internal/go-console/output/consoleoutput.go
    • Line 13: warning: exported type Coord should have comment or be unexported (golint)
    • Line 14: warning: exported type SmallRect should have comment or be unexported (golint)
    • Line 16: warning: exported type CharInfoT should have comment or be unexported (golint)
    • Line 22: warning: exported const COMMON_LVB_LEADING_BYTE should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; func parameter read_region should be readRegion (golint)
    • Line 45: warning: comment on exported function ReadConsoleOutput should be of the form "ReadConsoleOutput ..." (golint)
    • Line 46: warning: don't use underscores in Go names; func parameter read_region should be readRegion (golint)
    • Line 54: warning: exported function GetRecentOutput should have comment 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!


misspell93%

Misspell Finds commonly misspelled English words