Preparing report...

Report for github.com/timakin/gonvert

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


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.


golint5%

Golint is a linter for Go source code.

    • gonvert/converter/utf8_to_gbk.go
    • Line 8: warning: exported type UTF8ToGBKConverter should have comment or be unexported (golint)
    • Line 10: warning: exported method UTF8ToGBKConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/utf8_to_utf16.go
    • Line 8: warning: exported type UTF8ToUTF16BEConverter should have comment or be unexported (golint)
    • Line 10: warning: exported method UTF8ToUTF16BEConverter.Convert should have comment or be unexported (golint)
    • Line 14: warning: exported type UTF8ToUTF16LEConverter should have comment or be unexported (golint)
    • Line 16: warning: exported method UTF8ToUTF16LEConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/converter.go
    • Line 9: warning: exported type Converter should have comment or be unexported (golint)
    • Line 13: warning: exported type ConversionPattern should have comment or be unexported (golint)
    • Line 21: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gonvert/converter/gbk_to_eucjp.go
    • Line 9: warning: exported type GBKToEUCJPConverter should have comment or be unexported (golint)
    • Line 11: warning: exported method GBKToEUCJPConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/sjis_to_utf8.go
    • Line 8: warning: exported type SJISToUTF8Converter should have comment or be unexported (golint)
    • Line 10: warning: exported method SJISToUTF8Converter.Convert should have comment or be unexported (golint)
    • gonvert/converter/eucjp_to_gbk.go
    • Line 9: warning: exported type EUCJPToGBKConverter should have comment or be unexported (golint)
    • Line 11: warning: exported method EUCJPToGBKConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/gbk_to_sjis.go
    • Line 9: warning: exported type GBKToSJISConverter should have comment or be unexported (golint)
    • Line 11: warning: exported method GBKToSJISConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/sjis_to_eucjp.go
    • Line 8: warning: exported type SJISToEUCJPConverter should have comment or be unexported (golint)
    • Line 10: warning: exported method SJISToEUCJPConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/utf8_to_eucjp.go
    • Line 8: warning: exported type UTF8ToEUCJPConverter should have comment or be unexported (golint)
    • Line 10: warning: exported method UTF8ToEUCJPConverter.Convert should have comment or be unexported (golint)
    • gonvert/gonvert.go
    • Line 9: warning: exported type CharCode should have comment or be unexported (golint)
    • Line 12: warning: exported const UTF8 should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type CodePair should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • gonvert/converter/default.go
    • Line 3: warning: exported type DefaultConverter should have comment or be unexported (golint)
    • Line 5: warning: exported method DefaultConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/eucjp_to_sjis.go
    • Line 8: warning: exported type EUCJPToSJISConverter should have comment or be unexported (golint)
    • Line 10: warning: exported method EUCJPToSJISConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/utf16_to_utf8.go
    • Line 8: warning: exported type UTF16BEToUTF8Converter should have comment or be unexported (golint)
    • Line 10: warning: exported method UTF16BEToUTF8Converter.Convert should have comment or be unexported (golint)
    • Line 14: warning: exported type UTF16LEToUTF8Converter should have comment or be unexported (golint)
    • Line 16: warning: exported method UTF16LEToUTF8Converter.Convert should have comment or be unexported (golint)
    • gonvert/converter/utf8_to_sjis.go
    • Line 8: warning: exported type UTF8ToSJISConverter should have comment or be unexported (golint)
    • Line 10: warning: exported method UTF8ToSJISConverter.Convert should have comment or be unexported (golint)
    • gonvert/converter/eucjp_to_utf8.go
    • Line 8: warning: exported type EUCJPToUTF8Converter should have comment or be unexported (golint)
    • Line 10: warning: exported method EUCJPToUTF8Converter.Convert should have comment or be unexported (golint)
    • gonvert/converter/gbk_to_utf8.go
    • Line 8: warning: exported type GBKToUTF8Converter should have comment or be unexported (golint)
    • Line 10: warning: exported method GBKToUTF8Converter.Convert should have comment or be unexported (golint)
    • gonvert/converter/sjis_to_gbk.go
    • Line 9: warning: exported type SJISToGBKConverter should have comment or be unexported (golint)
    • Line 11: warning: exported method SJISToGBKConverter.Convert should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words