Preparing report...

Report for github.com/muesli/termenv

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


gocyclo93%

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.


golint68%

Golint is a linter for Go source code.

    • termenv/style.go
    • Line 11: warning: exported const ResetSeq should have comment (or a comment on this block) or be unexported (golint)
    • termenv/termenv.go
    • Line 11: warning: exported var ErrStatusReport should have comment or be unexported (golint)
    • Line 14: warning: exported type Profile should have comment or be unexported (golint)
    • Line 17: warning: exported const CSI should have comment (or a comment on this block) or be unexported (golint)
    • termenv/ansicolors.go
    • Line 4: warning: exported const ANSIBlack should have comment (or a comment on this block) or be unexported (golint)
    • termenv/color.go
    • Line 15: warning: exported var ErrInvalidColor should have comment or be unexported (golint)
    • Line 19: warning: exported const Foreground should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Color should have comment or be unexported (golint)
    • Line 27: warning: exported type NoColor should have comment or be unexported (golint)
    • Line 38: warning: exported function ConvertToRGB should have comment or be unexported (golint)
    • Line 53: warning: exported method Profile.Convert should have comment or be unexported (golint)
    • Line 86: warning: exported method Profile.Color should have comment or be unexported (golint)
    • Line 110: warning: exported method Profile.FromColor should have comment or be unexported (golint)
    • Line 115: warning: exported method NoColor.Sequence should have comment or be unexported (golint)
    • Line 119: warning: exported method ANSIColor.Sequence should have comment or be unexported (golint)
    • Line 134: warning: exported method ANSI256Color.Sequence should have comment or be unexported (golint)
    • Line 142: warning: exported method RGBColor.Sequence should have comment or be unexported (golint)
    • termenv/screen.go
    • Line 9: warning: exported const CursorUpSeq should have comment (or a comment on this block) 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!