Preparing report...

Report for github.com/webability-go/xdommask

A    Great!    Found 18 issues across 19 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!


golint5%

Golint is a linter for Go source code.

    • xdommask/lovfield.go
    • Line 5: warning: exported type LOVField should have comment or be unexported (golint)
    • Line 9: warning: exported function NewLOVField should have comment or be unexported (golint)
    • Line 15: warning: exported method LOVField.Compile should have comment or be unexported (golint)
    • xdommask/videofield.go
    • Line 5: warning: exported type VideoField should have comment or be unexported (golint)
    • Line 9: warning: exported function NewVideoField should have comment or be unexported (golint)
    • Line 15: warning: exported method VideoField.Compile should have comment or be unexported (golint)
    • xdommask/imagefield.go
    • Line 5: warning: exported type ImageField should have comment or be unexported (golint)
    • Line 9: warning: exported function NewImageField should have comment or be unexported (golint)
    • Line 15: warning: exported method ImageField.Compile should have comment or be unexported (golint)
    • xdommask/infofield.go
    • Line 7: warning: exported type InfoField should have comment or be unexported (golint)
    • Line 12: warning: exported function NewInfoField should have comment or be unexported (golint)
    • Line 21: warning: exported method InfoField.Compile should have comment or be unexported (golint)
    • xdommask/loofield.go
    • Line 5: warning: exported type LOOField should have comment or be unexported (golint)
    • Line 9: warning: exported function NewLOOField should have comment or be unexported (golint)
    • Line 15: warning: exported method LOOField.Compile should have comment or be unexported (golint)
    • xdommask/datefield.go
    • Line 10: warning: exported type DateField should have comment or be unexported (golint)
    • Line 14: warning: exported function NewDateField should have comment or be unexported (golint)
    • Line 22: warning: exported method DateField.Compile should have comment or be unexported (golint)
    • xdommask/floatfield.go
    • Line 5: warning: exported type FloatField should have comment or be unexported (golint)
    • Line 12: warning: exported function NewFloatField should have comment or be unexported (golint)
    • Line 18: warning: exported method FloatField.Compile should have comment or be unexported (golint)
    • xdommask/hiddenfield.go
    • Line 5: warning: exported type HiddenField should have comment or be unexported (golint)
    • Line 9: warning: exported function NewHiddenField should have comment or be unexported (golint)
    • Line 15: warning: exported method HiddenField.Compile should have comment or be unexported (golint)
    • xdommask/pwfield.go
    • Line 10: warning: exported type PWField should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPWField should have comment or be unexported (golint)
    • Line 22: warning: exported method PWField.Compile should have comment or be unexported (golint)
    • xdommask/textareafield.go
    • Line 10: warning: exported type TextAreaField should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTextAreaField should have comment or be unexported (golint)
    • Line 26: warning: exported method TextAreaField.Compile should have comment or be unexported (golint)
    • xdommask/textfield.go
    • Line 10: warning: exported type TextField should have comment or be unexported (golint)
    • Line 35: warning: exported function NewTextField should have comment or be unexported (golint)
    • Line 47: warning: exported method TextField.Compile should have comment or be unexported (golint)
    • xdommask/filefield.go
    • Line 5: warning: exported type FileField should have comment or be unexported (golint)
    • Line 9: warning: exported function NewFileField should have comment or be unexported (golint)
    • Line 15: warning: exported method FileField.Compile should have comment or be unexported (golint)
    • xdommask/mailfield.go
    • Line 10: warning: exported type MailField should have comment or be unexported (golint)
    • Line 14: warning: exported function NewMailField should have comment or be unexported (golint)
    • Line 22: warning: exported method MailField.Compile should have comment or be unexported (golint)
    • xdommask/mask.go
    • Line 11: warning: exported type Mode should have comment or be unexported (golint)
    • Line 14: warning: exported const INSERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type Mask should have comment or be unexported (golint)
    • Line 70: warning: exported function NewMask should have comment or be unexported (golint)
    • Line 82: warning: exported method Mask.AddField should have comment or be unexported (golint)
    • Line 86: warning: exported method Mask.Compile should have comment or be unexported (golint)
    • xdommask/buttonfield.go
    • Line 5: warning: exported type ButtonField should have comment or be unexported (golint)
    • Line 10: warning: exported function NewButtonField should have comment or be unexported (golint)
    • Line 16: warning: exported method ButtonField.Compile should have comment or be unexported (golint)
    • xdommask/field.go
    • Line 6: warning: exported const CONTROL should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type FieldDef should have comment or be unexported (golint)
    • Line 17: warning: exported type Field should have comment or be unexported (golint)
    • Line 43: warning: exported function NewField should have comment or be unexported (golint)
    • Line 47: warning: exported method Field.Compile should have comment or be unexported (golint)
    • Line 51: warning: exported method Field.GetType should have comment or be unexported (golint)
    • Line 55: warning: exported type DataField should have comment or be unexported (golint)
    • Line 77: warning: exported function NewDataField should have comment or be unexported (golint)
    • Line 81: warning: exported method DataField.Compile should have comment or be unexported (golint)
    • Line 85: warning: exported type ControlField should have comment or be unexported (golint)
    • Line 94: warning: exported function NewControlField should have comment or be unexported (golint)
    • Line 98: warning: exported method ControlField.Compile should have comment or be unexported (golint)
    • xdommask/integerfield.go
    • Line 5: warning: exported type IntegerField should have comment or be unexported (golint)
    • Line 12: warning: exported function NewIntegerField should have comment or be unexported (golint)
    • Line 18: warning: exported method IntegerField.Compile 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!


misspell94%

Misspell Finds commonly misspelled English words

    • xdommask/mask.go
    • Line 239: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 240: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 241: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 420: warning: "necesary" is a misspelling of "necessary" (misspell)