Preparing report...

Report for github.com/wenerme/go-gb

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


golint50%

Golint is a linter for Go source code.

    • go-gb/gb11714/seq.go
    • Line 3: warning: exported function Prev should have comment or be unexported (golint)
    • Line 8: warning: exported function Next should have comment or be unexported (golint)
    • go-gb/gs15/code.go
    • Line 10: warning: exported function ValidDigitLen should have comment or be unexported (golint)
    • Line 20: warning: exported function DigitStringToIntSlice should have comment or be unexported (golint)
    • Line 32: warning: exported function IntToIntSlice should have comment or be unexported (golint)
    • Line 43: warning: exported function Mod1110 should have comment or be unexported (golint)
    • Line 65: warning: exported type Code should have comment or be unexported (golint)
    • Line 75: warning: exported method Code.CalcSum should have comment or be unexported (golint)
    • Line 81: warning: exported method Code.IsValid should have comment or be unexported (golint)
    • Line 85: warning: exported method Code.Prev should have comment or be unexported (golint)
    • Line 94: warning: exported method Code.Next should have comment or be unexported (golint)
    • Line 103: warning: exported function ParseCode should have comment or be unexported (golint)
    • go-gb/gs15/seq.go
    • Line 3: warning: exported function Prev should have comment or be unexported (golint)
    • Line 11: warning: exported function Next should have comment or be unexported (golint)
    • go-gb/gb32100/sum.go
    • Line 11: warning: exported function IsValid should have comment or be unexported (golint)
    • Line 20: warning: exported function Sum should have comment or be unexported (golint)
    • go-gb/gb11714/const.go
    • Line 4: warning: exported const ContentLen should have comment (or a comment on this block) or be unexported (golint)
    • go-gb/gs15/const.go
    • Line 4: warning: exported const FullLen should have comment (or a comment on this block) or be unexported (golint)
    • go-gb/gbt2260/codes.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 13: warning: exported type Record should have comment or be unexported (golint)
    • Line 19: warning: exported method Record.Parent should have comment or be unexported (golint)
    • Line 32: warning: exported function Level should have comment or be unexported (golint)
    • Line 42: warning: exported function LookupCode should have comment or be unexported (golint)
    • Line 47: warning: exported function LookupName should have comment or be unexported (golint)
    • go-gb/gb32100/code.go
    • Line 18: warning: exported function Next should have comment or be unexported (golint)
    • Line 30: warning: exported function Prev should have comment or be unexported (golint)
    • Line 42: warning: exported method Code.RegDeptName should have comment or be unexported (golint)
    • Line 46: warning: exported method Code.OrgTypeName should have comment or be unexported (golint)
    • Line 58: warning: exported method Code.CalcSum should have comment or be unexported (golint)
    • Line 64: warning: exported method Code.Next should have comment or be unexported (golint)
    • Line 79: warning: exported method Code.Prev should have comment or be unexported (golint)
    • Line 94: warning: exported method Code.IsValid should have comment or be unexported (golint)
    • Line 98: warning: exported function ParseCode 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!