Preparing report...

Report for github.com/ackerr/lab

A+    Excellent!    Found 6 issues across 21 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!


gocyclo95%

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.


golint71%

Golint is a linter for Go source code.

    • lab/internal/ui/ci.go
    • Line 28: warning: exported function NewJobUI should have comment or be unexported (golint)
    • Line 40: warning: exported type JobModel should have comment or be unexported (golint)
    • Line 58: warning: exported method JobModel.Init should have comment or be unexported (golint)
    • Line 62: warning: exported method JobModel.Update should have comment or be unexported (golint)
    • Line 124: warning: exported method JobModel.View should have comment or be unexported (golint)
    • lab/utils/color.go
    • Line 15: warning: exported var Color should have comment or be unexported (golint)
    • Line 25: warning: exported function RandomColor should have comment or be unexported (golint)
    • Line 31: warning: exported function ColorFg should have comment or be unexported (golint)
    • Line 35: warning: exported function ColorBg should have comment or be unexported (golint)
    • lab/internal/config.go
    • Line 53: warning: exported var MainConfig should have comment or be unexported (golint)
    • Line 61: warning: exported function SetupConfig should have comment or be unexported (golint)
    • Line 97: warning: exported function Setup should have comment or be unexported (golint)
    • lab/internal/git.go
    • Line 12: warning: exported function GitCommand should have comment or be unexported (golint)
    • Line 46: warning: exported function Fetch should have comment or be unexported (golint)
    • Line 54: warning: exported function SetGitConfig should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function CurrentBranch should be of the form "CurrentBranch ..." (golint)
    • Line 79: warning: exported function RemoteURL should have comment or be unexported (golint)
    • Line 91: warning: comment on exported function CurrentRemote should be of the form "CurrentRemote ..." (golint)
    • lab/internal/gitlab.go
    • Line 23: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 90: warning: exported function TraceRunningJobs should have comment or be unexported (golint)
    • Line 120: warning: exported function DoTrace 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!