Preparing report...

Report for github.com/brigadecore/badgr

A+    Excellent!    Found 2 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!


golint90%

Golint is a linter for Go source code.

    • badgr/internal/badges/types.go
    • Line 47: warning: comment on exported const CheckStatusCanceled should be of the form "CheckStatusCanceled ..." (golint)
    • Line 60: warning: comment on exported const CheckStatusPassed should be of the form "CheckStatusPassed ..." (golint)
    • Line 127: warning: exported type CheckBadgeOptions should have comment or be unexported (golint)
    • Line 149: warning: exported method CheckBadge.Name should have comment or be unexported (golint)
    • Line 153: warning: exported method CheckBadge.Status should have comment or be unexported (golint)
    • Line 157: warning: exported method CheckBadge.Color should have comment or be unexported (golint)
    • Line 177: warning: exported method ErrBadge.Name should have comment or be unexported (golint)
    • Line 181: warning: exported method ErrBadge.Status should have comment or be unexported (golint)
    • Line 185: warning: exported method ErrBadge.Color should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • badgr/config_test.go
    • Line 26: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 37: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 38: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 49: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 60: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 71: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 118: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 119: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 130: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 145: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 146: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 157: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 158: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 169: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
    • Line 170: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!