Preparing report...

Report for github.com/chriswalz/bit

A+    Excellent!    Found 12 issues across 24 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!


gocyclo91%

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.

    • bit/main.go
    • Line 29: warning: cyclomatic complexity 18 of function main() is high (> 15) (gocyclo)

golint62%

Golint is a linter for Go source code.

    • bit/cmd/gh.go
    • Line 12: warning: exported type PullRequest should have comment or be unexported (golint)
    • Line 19: warning: exported function ListGHPullRequests should have comment or be unexported (golint)
    • Line 52: warning: exported function GHCliExistsAndLoggedIn should have comment or be unexported (golint)
    • bit/cmd/git.go
    • Line 13: warning: exported function CloudBranchExists should have comment or be unexported (golint)
    • Line 36: warning: exported function GetLastCommitId should have comment or be unexported (golint)
    • Line 46: warning: exported function CurrentBranch should have comment or be unexported (golint)
    • Line 54: warning: exported function IsAheadOfCurrent should have comment or be unexported (golint)
    • Line 62: warning: exported function IsGitRepo should have comment or be unexported (golint)
    • Line 67: warning: exported function IsBehindCurrent should have comment or be unexported (golint)
    • Line 75: warning: exported function NothingToCommit should have comment or be unexported (golint)
    • Line 88: warning: exported function IsDiverged should have comment or be unexported (golint)
    • Line 96: warning: exported function StashableChanges should have comment or be unexported (golint)
    • Line 104: warning: exported function MostRecentCommonAncestorCommit should have comment or be unexported (golint)
    • Line 112: warning: exported function StashList should have comment or be unexported (golint)
    • Line 145: warning: exported function FileChangesList should have comment or be unexported (golint)
    • Line 177: warning: exported function AllGitAliases should have comment or be unexported (golint)
    • Line 204: warning: exported function PrintGitVersion should have comment or be unexported (golint)
    • bit/cmd/gitmoji.go
    • Line 58: warning: exported function GitmojiSuggestions should have comment or be unexported (golint)
    • Line 70: warning: exported type Gitmoji should have comment or be unexported (golint)
    • bit/cmd/util.go
    • Line 23: warning: exported function RunInTerminalWithColor should have comment or be unexported (golint)
    • Line 31: warning: exported function RunInTerminalWithColorInDir should have comment or be unexported (golint)
    • Line 53: warning: exported function AskConfirm should have comment or be unexported (golint)
    • Line 61: warning: exported function AskMultiLine should have comment or be unexported (golint)
    • Line 70: warning: exported function BranchList should have comment or be unexported (golint)
    • Line 113: warning: exported function GenBumpedSemVersion should have comment or be unexported (golint)
    • Line 130: warning: exported function AddCommandToShellHistory should have comment or be unexported (golint)
    • Line 139: warning: exported function BranchListSuggestions should have comment or be unexported (golint)
    • Line 151: warning: exported function GitAddSuggestions should have comment or be unexported (golint)
    • Line 167: warning: exported function GitResetSuggestions should have comment or be unexported (golint)
    • Line 181: warning: exported function GitHubPRSuggestions should have comment or be unexported (golint)
    • Line 195: warning: exported function CobraCommandToSuggestions should have comment or be unexported (golint)
    • Line 206: warning: exported function CobraCommandToName should have comment or be unexported (golint)
    • Line 214: warning: exported function CobraCommandToDesc should have comment or be unexported (golint)
    • Line 222: warning: exported type Branch should have comment or be unexported (golint)
    • Line 229: warning: exported type FileChange should have comment or be unexported (golint)
    • Line 234: warning: exported type PromptTheme should have comment or be unexported (golint)
    • Line 244: warning: exported var DefaultTheme should have comment or be unexported (golint)
    • Line 254: warning: exported var InvertedTheme should have comment or be unexported (golint)
    • Line 264: warning: exported var MonochromeTheme should have comment or be unexported (golint)
    • Line 266: warning: exported function SuggestionPrompt should have comment or be unexported (golint)
    • Line 310: warning: exported type Exit should have comment or be unexported (golint)
    • Line 316: warning: exported function HandleExit should have comment or be unexported (golint)
    • Line 332: warning: exported function AllBitSubCommands should have comment or be unexported (golint)
    • Line 341: warning: exported function AllBitAndGitSubCommands should have comment or be unexported (golint)
    • Line 362: warning: exported function FlagSuggestionsForCommand should have comment or be unexported (golint)
    • Line 416: warning: exported function CommonCommandsList should have comment or be unexported (golint)
    • Line 465: warning: exported function RunScriptWithString should have comment or be unexported (golint)
    • Line 503: warning: exported function Find should have comment or be unexported (golint)
    • bit/cmd/bit_cmd.go
    • Line 153: warning: exported function RunGitCommandWithArgs should have comment or be unexported (golint)
    • Line 162: warning: exported function HijackGitCommandOccurred should have comment or be unexported (golint)
    • Line 215: warning: exported function GetVersion should have comment or be unexported (golint)
    • bit/cmd/bitcomplete.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 12: warning: exported function Bitcomplete should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words

    • bit/cmd/code_generated_src.go
    • Line 107: warning: "rela" is a misspelling of "real" (misspell)
    • Line 3210: warning: "proces" is a misspelling of "process" (misspell)
    • Line 4073: warning: "rela" is a misspelling of "real" (misspell)
    • Line 4792: warning: "strat" is a misspelling of "start" (misspell)
    • Line 4798: warning: "strat" is a misspelling of "start" (misspell)
    • Line 6236: warning: "rela" is a misspelling of "real" (misspell)