Preparing report...

Report for mae.earth/pkg/card

A    Great!    Found 4 issues across 8 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!


gocyclo62%

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.

    • /mae.earth/pkg/card/card.go
    • Line 464: warning: cyclomatic complexity 31 of function Parse() is high (> 15) (gocyclo)
    • Line 308: warning: cyclomatic complexity 23 of function attribute() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 17 of function attributes() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • /mae.earth/pkg/card/html/html.go
    • Line 1: warning: package comment should be of the form "Package html ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported var ErrBadData should have comment or be unexported (golint)
    • Line 20: warning: exported type FormOptions should have comment or be unexported (golint)
    • Line 30: warning: exported type FormAttribute should have comment or be unexported (golint)
    • Line 35: warning: exported type FormButton should have comment or be unexported (golint)
    • Line 40: warning: exported type FormUser should have comment or be unexported (golint)
    • Line 41: warning: exported type FormDisabled should have comment or be unexported (golint)
    • Line 43: warning: exported method FormUser.Get should have comment or be unexported (golint)
    • Line 50: warning: exported method FormDisabled.Is should have comment or be unexported (golint)
    • Line 59: warning: comment on exported function GenerateForm should be of the form "GenerateForm ..." (golint)
    • Line 208: warning: exported function ParseFormElement should have comment or be unexported (golint)
    • Line 239: warning: exported function ParseAsSelect should have comment or be unexported (golint)
    • Line 291: warning: exported function ParseAsRadio should have comment or be unexported (golint)
    • /mae.earth/pkg/card/card.go
    • Line 1: warning: package comment should be of the form "Package card ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 20: warning: exported type UserParser should have comment or be unexported (golint)
    • Line 35: warning: comment on exported function RegisterUserParser should be of the form "RegisterUserParser ..." (golint)
    • Line 44: warning: comment on exported function DeregisterUserParser should be of the form "DeregisterUserParser ..." (golint)
    • Line 57: warning: exported const UPID should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported type Sumer should have comment or be unexported (golint)
    • Line 65: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 71: warning: exported method Identifier.Sum should have comment or be unexported (golint)
    • Line 75: warning: exported method Identifier.IsInvalid should have comment or be unexported (golint)
    • Line 79: warning: comment on exported function Generate should be of the form "Generate ..." (golint)
    • Line 90: warning: exported const PartDelimiter should have comment or be unexported (golint)
    • Line 92: warning: exported function Compact should have comment or be unexported (golint)
    • Line 99: warning: exported const NameCard should have comment (or a comment on this block) or be unexported (golint)
    • Line 106: warning: exported const DataCard should have comment (or a comment on this block) or be unexported (golint)
    • Line 112: warning: exported var ErrRootIsNil should have comment or be unexported (golint)
    • Line 118: warning: exported type Literal should have comment or be unexported (golint)
    • Line 124: warning: exported type Plain should have comment or be unexported (golint)
    • Line 130: warning: exported type Name should have comment or be unexported (golint)
    • Line 136: warning: exported type Type should have comment or be unexported (golint)
    • Line 142: warning: exported type Attributer should have comment or be unexported (golint)
    • Line 152: warning: exported function S should have comment or be unexported (golint)
    • Line 156: warning: exported function Strip should have comment or be unexported (golint)
    • Line 163: warning: exported type Card should have comment or be unexported (golint)
    • Line 172: warning: exported method Card.Names should have comment or be unexported (golint)
    • Line 187: warning: exported method Card.Sexpr should have comment or be unexported (golint)
    • Line 208: warning: exported method Card.Set should have comment or be unexported (golint)
    • Line 218: warning: exported method Card.Get should have comment or be unexported (golint)
    • Line 227: warning: exported method Card.IsData should have comment or be unexported (golint)
    • Line 231: warning: exported method Card.SetAsFilter should have comment or be unexported (golint)
    • Line 236: warning: exported method Card.SetAsView should have comment or be unexported (golint)
    • Line 241: warning: exported method Card.SetAsData should have comment or be unexported (golint)
    • Line 246: warning: exported function New should have comment or be unexported (golint)
    • Line 264: warning: exported function Clone should have comment or be unexported (golint)
    • Line 286: warning: exported function CloneBlank should have comment or be unexported (golint)
    • Line 464: warning: exported function Parse should have comment or be unexported (golint)
    • Line 614: warning: exported function Output should have comment or be unexported (golint)
    • Line 618: warning: exported type Part should have comment or be unexported (golint)
    • Line 628: warning: exported method Part.AddAttribute should have comment or be unexported (golint)
    • Line 655: warning: exported method Part.GetAttribute should have comment or be unexported (golint)
    • Line 683: warning: exported function NewPart should have comment or be unexported (golint)
    • Line 690: warning: comment on exported function Partition should be of the form "Partition ..." (golint)
    • Line 704: warning: comment on exported function Fuzz should be of the form "Fuzz ..." (golint)
    • /mae.earth/pkg/card/compound.go
    • Line 1: warning: package comment should be of the form "Package card ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: exported type Compound should have comment or be unexported (golint)
    • Line 14: warning: exported method Compound.Equal should have comment or be unexported (golint)
    • Line 32: warning: exported method Compound.Sexpr should have comment or be unexported (golint)
    • Line 56: warning: exported method Compound.Name should have comment or be unexported (golint)
    • Line 60: warning: exported method Compound.Copy should have comment or be unexported (golint)
    • Line 70: warning: exported method Compound.Update should have comment or be unexported (golint)
    • Line 74: warning: exported method Compound.Blank should have comment or be unexported (golint)
    • Line 78: warning: exported method Compound.Add should have comment or be unexported (golint)
    • Line 83: warning: exported function NewCompound should have comment or be unexported (golint)
    • Line 90: warning: exported function ParseCompound should have comment or be unexported (golint)
    • /mae.earth/pkg/card/primitives.go
    • Line 1: warning: package comment should be of the form "Package card ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported const NameByte should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var EmptyDatetime should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type Datetime should be of the form "Datetime ..." (with optional leading article) (golint)
    • Line 33: warning: exported function DatetimeNow should have comment or be unexported (golint)
    • Line 39: warning: exported method Datetime.Equal should have comment or be unexported (golint)
    • Line 46: warning: exported method Datetime.Blank should have comment or be unexported (golint)
    • Line 50: warning: exported method Datetime.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method Datetime.Name should have comment or be unexported (golint)
    • Line 65: warning: exported method Datetime.Sexpr should have comment or be unexported (golint)
    • Line 69: warning: exported method Datetime.Copy should have comment or be unexported (golint)
    • Line 73: warning: exported function ParseDatetime should have comment or be unexported (golint)
    • Line 89: warning: comment on exported type Real should be of the form "Real ..." (with optional leading article) (golint)
    • Line 92: warning: exported const DefaultReal should have comment or be unexported (golint)
    • Line 94: warning: exported method Real.Equal should have comment or be unexported (golint)
    • Line 101: warning: exported method Real.Blank should have comment or be unexported (golint)
    • Line 105: warning: exported method Real.Update should have comment or be unexported (golint)
    • Line 112: warning: exported method Real.Name should have comment or be unexported (golint)
    • Line 120: warning: exported method Real.Sexpr should have comment or be unexported (golint)
    • Line 124: warning: exported method Real.Copy should have comment or be unexported (golint)
    • Line 128: warning: exported method Real.Parse should have comment or be unexported (golint)
    • Line 132: warning: exported function ParseReal should have comment or be unexported (golint)
    • Line 148: warning: comment on exported type Number should be of the form "Number ..." (with optional leading article) (golint)
    • Line 151: warning: exported method Number.Equal should have comment or be unexported (golint)
    • Line 158: warning: exported method Number.Blank should have comment or be unexported (golint)
    • Line 162: warning: exported method Number.Update should have comment or be unexported (golint)
    • Line 169: warning: exported method Number.Name should have comment or be unexported (golint)
    • Line 177: warning: exported method Number.Sexpr should have comment or be unexported (golint)
    • Line 181: warning: exported method Number.Copy should have comment or be unexported (golint)
    • Line 185: warning: exported function ParseNumber should have comment or be unexported (golint)
    • Line 201: warning: comment on exported type Byte should be of the form "Byte ..." (with optional leading article) (golint)
    • Line 204: warning: exported method Byte.Equal should have comment or be unexported (golint)
    • Line 211: warning: exported method Byte.Blank should have comment or be unexported (golint)
    • Line 215: warning: exported method Byte.Update should have comment or be unexported (golint)
    • Line 222: warning: exported method Byte.Name should have comment or be unexported (golint)
    • Line 230: warning: exported method Byte.Sexpr should have comment or be unexported (golint)
    • Line 234: warning: exported method Byte.Copy should have comment or be unexported (golint)
    • Line 238: warning: exported function ParseByte should have comment or be unexported (golint)
    • Line 260: warning: comment on exported type String should be of the form "String ..." (with optional leading article) (golint)
    • Line 263: warning: exported method String.Equal should have comment or be unexported (golint)
    • Line 270: warning: exported method String.Blank should have comment or be unexported (golint)
    • Line 274: warning: exported method String.Update should have comment or be unexported (golint)
    • Line 281: warning: exported method String.Name should have comment or be unexported (golint)
    • Line 289: warning: exported method String.Sexpr should have comment or be unexported (golint)
    • Line 293: warning: exported method String.Copy should have comment or be unexported (golint)
    • Line 297: warning: exported function ParseString should have comment or be unexported (golint)
    • Line 310: warning: comment on exported type Boolean should be of the form "Boolean ..." (with optional leading article) (golint)
    • Line 313: warning: exported method Boolean.Equal should have comment or be unexported (golint)
    • Line 320: warning: exported method Boolean.Blank should have comment or be unexported (golint)
    • Line 324: warning: exported method Boolean.Update should have comment or be unexported (golint)
    • Line 331: warning: exported method Boolean.Name should have comment or be unexported (golint)
    • Line 343: warning: exported method Boolean.Sexpr should have comment or be unexported (golint)
    • Line 351: warning: exported method Boolean.Copy should have comment or be unexported (golint)
    • Line 355: warning: exported function ParseBoolean should have comment or be unexported (golint)
    • Line 371: warning: exported type DelimitedString should have comment or be unexported (golint)
    • Line 376: warning: exported method DelimitedString.Delimit should have comment or be unexported (golint)
    • Line 380: warning: exported method DelimitedString.Equal should have comment or be unexported (golint)
    • Line 390: warning: exported method DelimitedString.Blank should have comment or be unexported (golint)
    • Line 394: warning: exported method DelimitedString.Update should have comment or be unexported (golint)
    • Line 401: warning: exported method DelimitedString.Name should have comment or be unexported (golint)
    • Line 409: warning: exported method DelimitedString.Copy should have comment or be unexported (golint)
    • Line 413: warning: exported function ParseDelimitedString should have comment or be unexported (golint)
    • Line 436: warning: exported method DelimitedString.Sexpr should have comment or be unexported (golint)
    • Line 436: warning: receiver name ds should be consistent with previous receiver name s for DelimitedString (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!