Preparing report...

Report for github.com/askgitdev/askgit

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


gocyclo88%

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.


golint50%

Golint is a linter for Go source code.

    • askgit/tables/internal/tools/tools.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported function Clone should have comment or be unexported (golint)
    • Line 28: warning: exported function RowCount should have comment or be unexported (golint)
    • Line 36: warning: exported function RowContent should have comment or be unexported (golint)
    • askgit/tables/internal/funcs/yaml_to_json.go
    • Line 13: warning: exported method YamlToJson.Args should have comment or be unexported (golint)
    • Line 14: warning: exported method YamlToJson.Deterministic should have comment or be unexported (golint)
    • Line 16: warning: exported method YamlToJson.Apply should have comment or be unexported (golint)
    • askgit/pkg/ghqlite/repos_vtab.go
    • Line 13: warning: exported type ReposModule should have comment or be unexported (golint)
    • Line 18: warning: exported function NewReposModule should have comment or be unexported (golint)
    • Line 27: warning: exported type ReposModuleOptions should have comment or be unexported (golint)
    • Line 32: warning: exported method ReposModule.EponymousOnlyModule should have comment or be unexported (golint)
    • Line 34: warning: exported method ReposModule.Create should have comment or be unexported (golint)
    • Line 72: warning: exported method ReposModule.Connect should have comment or be unexported (golint)
    • Line 76: warning: exported method ReposModule.DestroyModule should have comment or be unexported (golint)
    • askgit/pkg/tui/keybind.go
    • Line 15: warning: exported function SetCurrentViewOnTop should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function ClearQuery should be of the form "ClearQuery ..." (golint)
    • Line 33: warning: comment on exported function NextView should be of the form "NextView ..." (golint)
    • Line 51: warning: comment on exported function HandleClick should be of the form "HandleClick ..." (golint)
    • Line 82: warning: comment on exported function HandleCursor should be of the form "HandleCursor ..." (golint)
    • Line 119: warning: comment on exported function RunQuery should be of the form "RunQuery ..." (golint)
    • Line 156: warning: comment on exported function PreviousLine should be of the form "PreviousLine ..." (golint)
    • Line 169: warning: exported function NextLine should have comment or be unexported (golint)
    • Line 181: warning: exported function GoLeft should have comment or be unexported (golint)
    • Line 194: warning: exported function GoRight should have comment or be unexported (golint)
    • Line 203: warning: exported function JumpRight should have comment or be unexported (golint)
    • Line 212: warning: exported function JumpLeft should have comment or be unexported (golint)
    • Line 226: warning: exported function JumpUp should have comment or be unexported (golint)
    • Line 240: warning: exported function JumpDown should have comment or be unexported (golint)
    • askgit/cmd/root.go
    • Line 75: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • askgit/tables/internal/funcs/toml_to_json.go
    • Line 14: warning: exported method TomlToJson.Args should have comment or be unexported (golint)
    • Line 15: warning: exported method TomlToJson.Deterministic should have comment or be unexported (golint)
    • Line 17: warning: exported method TomlToJson.Apply should have comment or be unexported (golint)
    • askgit/pkg/ghqlite/issue_iterator.go
    • Line 17: warning: exported type RepoIssueIteratorOptions should have comment or be unexported (golint)
    • Line 22: warning: exported function NewRepoIssueIterator should have comment or be unexported (golint)
    • Line 53: warning: exported method RepoIssueIterator.Next should have comment or be unexported (golint)
    • askgit/pkg/ghqlite/pull_request_iterator.go
    • Line 17: warning: exported type RepoPullRequestIteratorOptions should have comment or be unexported (golint)
    • Line 22: warning: exported function NewRepoPullRequestIterator should have comment or be unexported (golint)
    • Line 48: warning: exported method RepoPullRequestIterator.Next should have comment or be unexported (golint)
    • askgit/pkg/ghqlite/pull_requests_vtab.go
    • Line 16: warning: exported type PullRequestsModule should have comment or be unexported (golint)
    • Line 20: warning: exported type PullRequestsModuleOptions should have comment or be unexported (golint)
    • Line 25: warning: exported function NewPullRequestsModule should have comment or be unexported (golint)
    • Line 33: warning: exported method PullRequestsModule.EponymousOnlyModule should have comment or be unexported (golint)
    • Line 35: warning: exported method PullRequestsModule.Create should have comment or be unexported (golint)
    • Line 87: warning: exported method PullRequestsModule.Connect should have comment or be unexported (golint)
    • Line 91: warning: exported method PullRequestsModule.DestroyModule should have comment or be unexported (golint)
    • askgit/pkg/ghqlite/issue_vtab.go
    • Line 15: warning: exported type IssuesModule should have comment or be unexported (golint)
    • Line 19: warning: exported type IssuesModuleOptions should have comment or be unexported (golint)
    • Line 24: warning: exported function NewIssuesModule should have comment or be unexported (golint)
    • Line 32: warning: exported method IssuesModule.EponymousOnlyModule should have comment or be unexported (golint)
    • Line 34: warning: exported method IssuesModule.Create should have comment or be unexported (golint)
    • Line 73: warning: exported method IssuesModule.Connect should have comment or be unexported (golint)
    • Line 77: warning: exported method IssuesModule.DestroyModule should have comment or be unexported (golint)
    • askgit/tables/internal/funcs/xml_to_json.go
    • Line 13: warning: exported method XmlToJson.Args should have comment or be unexported (golint)
    • Line 14: warning: exported method XmlToJson.Deterministic should have comment or be unexported (golint)
    • Line 16: warning: exported method XmlToJson.Apply should have comment or be unexported (golint)
    • askgit/tables/internal/funcs/str_split.go
    • Line 13: warning: exported method StringSplit.Args should have comment or be unexported (golint)
    • Line 14: warning: exported method StringSplit.Deterministic should have comment or be unexported (golint)
    • Line 16: warning: exported method StringSplit.Apply should have comment or be unexported (golint)
    • askgit/pkg/askgit/askgit.go
    • Line 15: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported type AskGit should have comment or be unexported (golint)
    • Line 29: warning: exported type Options should have comment or be unexported (golint)
    • Line 124: warning: exported method AskGit.DB should have comment or be unexported (golint)
    • Line 128: warning: exported method AskGit.RepoPath should have comment or be unexported (golint)
    • Line 183: warning: exported function CreateAuthenticationCallback should have comment or be unexported (golint)
    • askgit/tables/internal/git/blame_iter.go
    • Line 10: warning: exported type BlameIterator should have comment or be unexported (golint)
    • Line 17: warning: exported type BlamedLine should have comment or be unexported (golint)
    • Line 24: warning: exported function NewBlameIterator should have comment or be unexported (golint)
    • Line 103: warning: exported method BlameIterator.Next should have comment or be unexported (golint)
    • askgit/pkg/gitlog/parse.go
    • Line 12: warning: exported type Commit should have comment or be unexported (golint)
    • Line 26: warning: exported type Result should have comment or be unexported (golint)
    • Line 28: warning: exported type CommitIter should have comment or be unexported (golint)
    • Line 54: warning: exported method CommitIter.Next should have comment or be unexported (golint)
    • Line 133: warning: exported function Execute should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell98%

Misspell Finds commonly misspelled English words