Preparing report...

Report for github.com/cristalhq/base64

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


gocyclo75%

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.

    • base64/decoder.go
    • Line 6: warning: cyclomatic complexity 24 of function (*Encoding).decode() is high (> 15) (gocyclo)

golint83%

Golint is a linter for Go source code.

    • base64/base64.go
    • Line 1: warning: package comment should be of the form "Package base64 ..." (golint)
    • Line 9: warning: exported var ErrWrongData should have comment or be unexported (golint)
    • Line 11: warning: exported type Encoding should have comment or be unexported (golint)
    • Line 21: warning: exported method Encoding.EncodedLen should have comment or be unexported (golint)
    • Line 28: warning: exported method Encoding.Encode should have comment or be unexported (golint)
    • Line 35: warning: exported method Encoding.EncodeToBytes should have comment or be unexported (golint)
    • Line 45: warning: exported method Encoding.EncodeToString should have comment or be unexported (golint)
    • Line 49: warning: exported method Encoding.EncodeString should have comment or be unexported (golint)
    • Line 53: warning: exported method Encoding.EncodeStringToString should have comment or be unexported (golint)
    • Line 57: warning: exported method Encoding.DecodedLen should have comment or be unexported (golint)
    • Line 64: warning: exported method Encoding.Decode should have comment or be unexported (golint)
    • Line 75: warning: exported method Encoding.DecodeToBytes should have comment or be unexported (golint)
    • Line 92: warning: exported method Encoding.DecodeToString should have comment or be unexported (golint)
    • Line 100: warning: exported method Encoding.DecodeString should have comment or be unexported (golint)
    • Line 104: warning: exported method Encoding.DecodeStringToString should have comment or be unexported (golint)
    • Line 112: warning: exported function NewEncoding should have comment or be unexported (golint)
    • Line 126: warning: exported var StdEncoding 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!