Preparing report...

Report for github.com/naruhiyo/aman

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


golint0%

Golint is a linter for Go source code.

    • aman/implement/pagination/pagination.go
    • Line 9: warning: exported type PaginationStruct should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function NewPagination should be of the form "NewPagination ..." (golint)
    • Line 23: warning: comment on exported method PaginationStruct.LocatePages should be of the form "LocatePages ..." (golint)
    • Line 66: warning: comment on exported method PaginationStruct.NextLine should be of the form "NextLine ..." (golint)
    • Line 75: warning: comment on exported method PaginationStruct.BackLine should be of the form "BackLine ..." (golint)
    • Line 85: warning: comment on exported method PaginationStruct.NextPage should be of the form "NextPage ..." (golint)
    • Line 96: warning: comment on exported method PaginationStruct.BackPage should be of the form "BackPage ..." (golint)
    • Line 107: warning: comment on exported method PaginationStruct.Reset should be of the form "Reset ..." (golint)
    • aman/implement/model/man_data_object.go
    • Line 12: warning: exported type ManDataObjectStruct should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function NewManDataObject should be of the form "NewManDataObject ..." (golint)
    • Line 25: warning: comment on exported method ManDataObjectStruct.GetMatchedInfo should be of the form "GetMatchedInfo ..." (golint)
    • Line 38: warning: comment on exported method ManDataObjectStruct.AnalyzeMan should be of the form "AnalyzeMan ..." (golint)
    • Line 122: warning: comment on exported method ManDataObjectStruct.IncrementalSearch should be of the form "IncrementalSearch ..." (golint)
    • Line 156: warning: comment on exported method ManDataObjectStruct.MapLineNumber should be of the form "MapLineNumber ..." (golint)
    • Line 168: warning: comment on exported method ManDataObjectStruct.MapMatchedText should be of the form "MapMatchedText ..." (golint)
    • aman/implement/io/input.go
    • Line 17: warning: exported type InputStruct should have comment or be unexported (golint)
    • Line 26: warning: comment on exported function NewInput should be of the form "NewInput ..." (golint)
    • Line 40: warning: comment on exported method InputStruct.Parse should be of the form "Parse ..." (golint)
    • Line 69: warning: comment on exported method InputStruct.DeleteInput should be of the form "DeleteInput ..." (golint)
    • Line 82: warning: comment on exported method InputStruct.ExtractOption should be of the form "ExtractOption ..." (golint)
    • Line 106: warning: comment on exported method InputStruct.PutSpace should be of the form "PutSpace ..." (golint)
    • Line 114: warning: comment on exported method InputStruct.PutKey should be of the form "PutKey ..." (golint)
    • aman/implement/util/command.go
    • Line 17: warning: exported type CommandStruct should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function NewCommand should be of the form "NewCommand ..." (golint)
    • Line 28: warning: comment on exported method CommandStruct.ExecMan should be of the form "ExecMan ..." (golint)
    • Line 51: warning: comment on exported method CommandStruct.CmdOutput should be of the form "CmdOutput ..." (golint)
    • Line 69: warning: comment on exported method CommandStruct.PostExecMain should be of the form "PostExecMain ..." (golint)
    • aman/struct/util/command.go
    • Line 3: warning: comment on exported type CommandStruct should be of the form "CommandStruct ..." (with optional leading article) (golint)
    • aman/main.go
    • Line 19: warning: exported var Version should have comment or be unexported (golint)
    • aman/implement/window/window.go
    • Line 16: warning: exported const SELECTED_TEXT_COLOR should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type WindowInfoStruct should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function NewWindowInfo should be of the form "NewWindowInfo ..." (golint)
    • Line 37: warning: comment on exported method WindowInfoStruct.RenderPageNumber should be of the form "RenderPageNumber ..." (golint)
    • Line 50: warning: comment on exported method WindowInfoStruct.RenderOptionStack should be of the form "RenderOptionStack ..." (golint)
    • Line 68: warning: comment on exported method WindowInfoStruct.RenderResult should be of the form "RenderResult ..." (golint)
    • Line 146: warning: comment on exported method WindowInfoStruct.RenderQuery should be of the form "RenderQuery ..." (golint)
    • Line 154: warning: comment on exported method WindowInfoStruct.RenderCursor should be of the form "RenderCursor ..." (golint)
    • aman/struct/io/input.go
    • Line 3: warning: comment on exported type InputStruct should be of the form "InputStruct ..." (with optional leading article) (golint)
    • aman/struct/model/man_data_object.go
    • Line 3: warning: comment on exported type ManData should be of the form "ManData ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type MatchedInfo should be of the form "MatchedInfo ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported type ManDataObject should be of the form "ManDataObject ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!