Preparing report...

Report for github.com/apaxa-go/helper

A+    Excellent!    Found 53 issues across 419 files

Tweet

gofmt98%

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!


golint94%

Golint is a linter for Go source code.

    • helper/unicodeh/bidih/paragraph.go
    • Line 29: warning: exported type LineBreaker should have comment or be unexported (golint)
    • Line 51: warning: exported function ParseParagraph should have comment or be unexported (golint)
    • Line 56: warning: exported function ParseParagraphExtended should have comment or be unexported (golint)
    • helper/unicodeh/other-gen.go
    • Line 3: warning: comment on exported var BidiPairedBracket should be of the form "BidiPairedBracket ..." (golint)
    • Line 8: warning: comment on exported var BidiMirroringGlyph should be of the form "BidiMirroringGlyph ..." (golint)
    • helper/unicodeh/rangetableh/iterator.go
    • Line 5: warning: exported type Iterator should have comment or be unexported (golint)
    • Line 12: warning: exported function Start should have comment or be unexported (golint)
    • Line 24: warning: exported method Iterator.Next should have comment or be unexported (golint)
    • Line 61: warning: exported method Iterator.End should have comment or be unexported (golint)
    • Line 63: warning: comment on exported method Iterator.Value should be of the form "Value ..." (golint)
    • helper/unicodeh/bidih/base.go
    • Line 8: warning: exported type EmbeddingLevel should have comment or be unexported (golint)
    • Line 18: warning: exported const LeftToRightParagraph should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Text should have comment or be unexported (golint)
    • Line 36: warning: exported function Parse should have comment or be unexported (golint)
    • helper/unicodeh/internal/generator/ucdparser/settings.go
    • Line 5: warning: exported var DefaultParseDetails should have comment or be unexported (golint)
    • Line 41: warning: exported var DefaultDeprecatedProperies should have comment or be unexported (golint)
    • Line 49: warning: comment on exported var DefaultAdditionalValues should be of the form "DefaultAdditionalValues ..." (golint)
    • Line 54: warning: comment on exported var DefaultPseudoValues should be of the form "DefaultPseudoValues ..." (golint)
    • Line 69: warning: comment on exported var DefaultReallyEmptyValues should be of the form "DefaultReallyEmptyValues ..." (golint)
    • helper/unicodeh/internal/ucd/ucd.go
    • Line 74: warning: comment on exported function Part should be of the form "Part ..." (golint)
    • Line 82: warning: comment on exported function CommentHandler should be of the form "CommentHandler ..." (golint)
    • helper/unicodeh/internal/generator/ucdparser/structure.go
    • Line 12: warning: exported type Value should have comment or be unexported (golint)
    • Line 20: warning: exported type Property should have comment or be unexported (golint)
    • Line 30: warning: exported type Properties should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method Properties.PropIndexByName should be of the form "PropIndexByName ..." (golint)
    • Line 45: warning: exported method Properties.MustPropIndexByName should have comment or be unexported (golint)
    • Line 52: warning: exported method Property.MustValueIndexByName should have comment or be unexported (golint)
    • Line 78: warning: exported method Properties.CleanEmpty should have comment or be unexported (golint)
    • helper/unicodeh/rangetableh/rangetable.go
    • Line 11: warning: exported const MinR32 should have comment or be unexported (golint)
    • Line 13: warning: exported function FromRuneRange should have comment or be unexported (golint)
    • Line 29: warning: exported function Copy should have comment or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; var range_ should be range (golint)
    • Line 90: warning: don't use underscores in Go names; var range_ should be range (golint)
    • Line 119: warning: comment on exported function DeleteRunes should be of the form "DeleteRunes ..." (golint)
    • Line 149: warning: exported function Runes should have comment or be unexported (golint)
    • Line 162: warning: comment on exported function Sub should be of the form "Sub ..." (golint)
    • Line 177: warning: comment on exported function Invert should be of the form "Invert ..." (golint)
    • Line 182: warning: exported function Intersect should have comment or be unexported (golint)
    • Line 208: warning: exported function GoString should have comment or be unexported (golint)
    • Line 242: warning: exported function RawRangesCount should have comment or be unexported (golint)
    • Line 246: warning: exported function RuneCount16 should have comment or be unexported (golint)
    • Line 249: warning: exported function RuneCount32 should have comment or be unexported (golint)
    • Line 253: warning: exported function RuneCount should have comment or be unexported (golint)
    • Line 288: warning: comment on exported function RangesCount should be of the form "RangesCount ..." (golint)
    • Line 303: warning: comment on exported function Lo should be of the form "Lo ..." (golint)
    • Line 314: warning: comment on exported function Hi should be of the form "Hi ..." (golint)

gocyclo94%

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.

    • helper/mathh/logical-gen_test.go
    • Line 390: warning: cyclomatic complexity 38 of function TestAllCompareInt8() is high (> 15) (gocyclo)
    • Line 975: warning: cyclomatic complexity 38 of function TestAllCompareUint() is high (> 15) (gocyclo)
    • Line 780: warning: cyclomatic complexity 38 of function TestAllCompareInt32() is high (> 15) (gocyclo)
    • Line 1170: warning: cyclomatic complexity 38 of function TestAllCompareUint8() is high (> 15) (gocyclo)
    • Line 585: warning: cyclomatic complexity 38 of function TestAllCompareInt16() is high (> 15) (gocyclo)
    • Line 1560: warning: cyclomatic complexity 38 of function TestAllCompareUint32() is high (> 15) (gocyclo)
    • Line 1755: warning: cyclomatic complexity 38 of function TestAllCompareUint64() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 38 of function TestAllCompareInt() is high (> 15) (gocyclo)
    • Line 1365: warning: cyclomatic complexity 38 of function TestAllCompareUint16() is high (> 15) (gocyclo)
    • Line 1136: warning: cyclomatic complexity 32 of function TestAllSignUint8() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 32 of function TestAllSignInt() is high (> 15) (gocyclo)
    • Line 1721: warning: cyclomatic complexity 32 of function TestAllSignUint64() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 32 of function TestAllSignInt8() is high (> 15) (gocyclo)
    • Line 1526: warning: cyclomatic complexity 32 of function TestAllSignUint32() is high (> 15) (gocyclo)
    • Line 551: warning: cyclomatic complexity 32 of function TestAllSignInt16() is high (> 15) (gocyclo)
    • Line 941: warning: cyclomatic complexity 32 of function TestAllSignUint() is high (> 15) (gocyclo)
    • Line 1331: warning: cyclomatic complexity 32 of function TestAllSignUint16() is high (> 15) (gocyclo)
    • Line 746: warning: cyclomatic complexity 32 of function TestAllSignInt32() is high (> 15) (gocyclo)
    • helper/mathh/logical_test.go
    • Line 138: warning: cyclomatic complexity 38 of function TestAllCompareInt64() is high (> 15) (gocyclo)
    • Line 104: warning: cyclomatic complexity 32 of function TestAllSignInt64() is high (> 15) (gocyclo)

ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words