Preparing report...

Report for github.com/demizer/go-rst

A+    Excellent!    Found 22 issues across 52 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!


golint71%

Golint is a linter for Go source code.

    • go-rst/pkg/document/node.go
    • Line 189: warning: exported function NewSection should have comment or be unexported (golint)
    • Line 300: warning: exported function NewTitleNode should have comment or be unexported (golint)
    • Line 302: warning: exported function NewTitleNodeWithText should have comment or be unexported (golint)
    • Line 354: warning: exported function NewText should have comment or be unexported (golint)
    • Line 393: warning: exported function NewParagraph should have comment or be unexported (golint)
    • Line 395: warning: exported function NewParagraphWithNodeText should have comment or be unexported (golint)
    • Line 432: warning: exported function NewInlineEmphasis should have comment or be unexported (golint)
    • Line 474: warning: exported function NewInlineStrong should have comment or be unexported (golint)
    • Line 516: warning: exported function NewInlineLiteral should have comment or be unexported (golint)
    • Line 560: warning: exported function NewInlineInterpretedText should have comment or be unexported (golint)
    • Line 605: warning: exported function NewInlineInterpretedTextRole should have comment or be unexported (golint)
    • Line 647: warning: exported function NewEmptyBlockQuote should have comment or be unexported (golint)
    • Line 656: warning: exported function NewBlockQuote should have comment or be unexported (golint)
    • Line 690: warning: comment on exported type SystemMessagesNode should be of the form "SystemMessagesNode ..." (with optional leading article) (golint)
    • Line 696: warning: exported function NewSystemMessagesNode should have comment or be unexported (golint)
    • Line 749: warning: exported function NewSystemMessage should have comment or be unexported (golint)
    • Line 808: warning: exported function NewLiteralBlock should have comment or be unexported (golint)
    • Line 850: warning: exported function NewTransition should have comment or be unexported (golint)
    • Line 892: warning: exported function NewComment should have comment or be unexported (golint)
    • Line 932: warning: comment on exported function NewBulletListNode should be of the form "NewBulletListNode ..." (golint)
    • Line 969: warning: comment on exported function NewBulletListItemNode should be of the form "NewBulletListItemNode ..." (golint)
    • Line 1059: warning: exported function NewDefinitionList should have comment or be unexported (golint)
    • Line 1092: warning: exported function NewDefinitionListItem should have comment or be unexported (golint)
    • go-rst/pkg/testutil/testutil.go
    • Line 18: warning: exported var StdLogger should have comment or be unexported (golint)
    • Line 42: warning: exported function LogRun should have comment or be unexported (golint)
    • Line 48: warning: exported function LogPass should have comment or be unexported (golint)
    • Line 54: warning: exported function Log should have comment or be unexported (golint)
    • Line 60: warning: exported function LogDebug should have comment or be unexported (golint)
    • Line 66: warning: exported function Logf should have comment or be unexported (golint)
    • Line 72: warning: exported function JsonDiff should have comment or be unexported (golint)
    • Line 78: warning: comment on exported type Test should be of the form "Test ..." (with optional leading article) (golint)
    • Line 86: warning: comment on exported var TestDataFiles should be of the form "TestDataFiles ..." (golint)
    • Line 89: warning: comment on exported function TestPathsFromDirectory should be of the form "TestPathsFromDirectory ..." (golint)
    • go-rst/pkg/token/lexer.go
    • Line 79: warning: comment on exported function Lex should be of the form "Lex ..." (golint)
    • Line 228: warning: comment on exported method Lexer.NextItem should be of the form "NextItem ..." (golint)
    • go-rst/pkg/document/nodelist.go
    • Line 11: warning: exported method NodeList.Append should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method NodeList.LastNode should be of the form "LastNode ..." (golint)
    • go-rst/pkg/token/item.go
    • Line 12: warning: exported const EOF should have comment (or a comment on this block) or be unexported (golint)
    • Line 104: warning: exported method Type.UnmarshalJSON should have comment or be unexported (golint)
    • Line 113: warning: comment on exported type Item should be of the form "Item ..." (with optional leading article) (golint)

gocyclo88%

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words