Preparing report...

Report for github.com/ejilay/draftjs

A+    Excellent!    Found 6 issues across 9 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!


golint33%

Golint is a linter for Go source code.

    • draftjs/block_iterator.go
    • Line 3: warning: exported type BlockIterator should have comment or be unexported (golint)
    • Line 9: warning: exported function NewBlockIterator should have comment or be unexported (golint)
    • Line 19: warning: exported method BlockIterator.HasNext should have comment or be unexported (golint)
    • Line 23: warning: exported method BlockIterator.StepNext should have comment or be unexported (golint)
    • Line 33: warning: exported method BlockIterator.NextBlock should have comment or be unexported (golint)
    • draftjs/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 10: warning: exported type CacheElement should have comment or be unexported (golint)
    • Line 12: warning: exported type Cache should have comment or be unexported (golint)
    • Line 14: warning: exported function NewCache should have comment or be unexported (golint)
    • Line 18: warning: exported type Descriptor should have comment or be unexported (golint)
    • Line 25: warning: exported method Config.SetEntityDecorator should have comment or be unexported (golint)
    • Line 35: warning: exported method Config.GetEntityDecorator should have comment or be unexported (golint)
    • Line 39: warning: exported method Config.SetBlockMapElement should have comment or be unexported (golint)
    • Line 49: warning: exported method Config.GetBlockMapElement should have comment or be unexported (golint)
    • Line 53: warning: exported method Config.SetStyleMapElement should have comment or be unexported (golint)
    • Line 63: warning: exported method Config.GetStyleMapElement should have comment or be unexported (golint)
    • Line 67: warning: exported function SetDefaultBlocks should have comment or be unexported (golint)
    • Line 91: warning: exported function SetDefaultStyles should have comment or be unexported (golint)
    • Line 128: warning: exported function SetDefaultDecorators should have comment or be unexported (golint)
    • Line 146: warning: exported method Config.Precache should have comment or be unexported (golint)
    • Line 154: warning: exported method Config.PrecacheBlocks should have comment or be unexported (golint)
    • Line 165: warning: exported method Config.PrecacheStyles should have comment or be unexported (golint)
    • Line 174: warning: exported method Config.GetFromCache should have comment or be unexported (golint)
    • Line 179: warning: exported method Config.SetToCache should have comment or be unexported (golint)
    • draftjs/decorators.go
    • Line 5: warning: exported type Decorator should have comment or be unexported (golint)
    • Line 10: warning: exported type LinkDecorator should have comment or be unexported (golint)
    • Line 13: warning: exported method LinkDecorator.RenderBeginning should have comment or be unexported (golint)
    • Line 17: warning: exported method LinkDecorator.RenderEnding should have comment or be unexported (golint)
    • draftjs/helpers.go
    • Line 12: warning: exported function GetDescriptorFromMap should have comment or be unexported (golint)
    • Line 22: warning: exported function GetBlockWrapperTag should have comment or be unexported (golint)
    • Line 33: warning: exported function GetBlockWrapperStartTag should have comment or be unexported (golint)
    • Line 52: warning: exported function GetBlockWrapperEndTag should have comment or be unexported (golint)
    • Line 71: warning: exported function GetBlockTag should have comment or be unexported (golint)
    • Line 82: warning: exported function GetBlockStartTag should have comment or be unexported (golint)
    • Line 101: warning: exported function GetBlockEndTag should have comment or be unexported (golint)
    • Line 120: warning: exported function GetStylemapElement should have comment or be unexported (golint)
    • Line 131: warning: exported function GetStyleStartTag should have comment or be unexported (golint)
    • Line 150: warning: exported function GetStyleEndTag should have comment or be unexported (golint)
    • Line 169: warning: exported function GetEntityDecorator should have comment or be unexported (golint)
    • Line 184: warning: exported function GetEntityStartTag should have comment or be unexported (golint)
    • Line 192: warning: exported function GetEntityEndTag should have comment or be unexported (golint)
    • Line 202: warning: don't use underscores in Go names; var start_str_idx should be startStrIdx (golint)
    • Line 216: warning: exported function PerformInlineStylesAndEntities should have comment or be unexported (golint)
    • Line 243: warning: exported function GetEntityForRange should have comment or be unexported (golint)
    • Line 256: warning: exported function GetStyleForRange should have comment or be unexported (golint)
    • Line 270: warning: comment on exported function GetRanges should be of the form "GetRanges ..." (golint)
    • Line 302: warning: exported function GetBreakPoints should have comment or be unexported (golint)
    • draftjs/types.go
    • Line 3: warning: comment on exported type ContentState should be of the form "ContentState ..." (with optional leading article) (golint)
    • Line 10: warning: comment on exported type ContentBlock should be of the form "ContentBlock ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Entity should be of the form "Entity ..." (with optional leading article) (golint)
    • Line 30: warning: exported type Range should have comment or be unexported (golint)
    • Line 35: warning: comment on exported type InlineStyleRange should be of the form "InlineStyleRange ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported type EntityRange should be of the form "EntityRange ..." (with optional leading article) (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!