Preparing report...

Report for github.com/malisit/kolpa

(v0.0.0-20201024193526-315f7b3afa5d)

A+    Excellent!    Found 9 issues across 25 files

Tweet

gofmt92%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo92%

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.


golint80%

Golint is a linter for Go source code.

    • kolpa/email.go
    • Line 3: warning: comment on exported method Generator.Email should be of the form "Email ..." (golint)
    • Line 11: warning: comment on exported method Generator.EmailMale should be of the form "EmailMale ..." (golint)
    • Line 19: warning: comment on exported method Generator.EmailFemale should be of the form "EmailFemale ..." (golint)
    • kolpa/kolpa.go
    • Line 23: warning: don't use underscores in Go names; struct field Locale_ should be Locale (golint)
    • Line 27: warning: comment on exported var Print should be of the form "Print ..." (golint)
    • kolpa/payment.go
    • Line 10: warning: comment on exported method Generator.MasterCard should be of the form "MasterCard ..." (golint)
    • Line 17: warning: comment on exported method Generator.VisaCard should be of the form "VisaCard ..." (golint)
    • kolpa/color.go
    • Line 3: warning: exported method Generator.Color should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!