Preparing report...

Report for github.com/sinlov/GoLang-PlayGround

C    Needs some work    Found 104 issues across 116 files

Tweet

gofmt56%

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!


gocyclo99%

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.


golint12%

Golint is a linter for Go source code.

    • GoLang-PlayGround/Go2Me/go_base/string_test.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 26: warning: don't use underscores in Go names; var mutli_line_string should be mutliLineString (golint)
    • Line 31: warning: don't use underscores in Go names; func go_base_test should be goBaseTest (golint)
    • Line 40: warning: don't use underscores in Go names; func go_base_err_string_change should be goBaseErrStringChange (golint)
    • Line 49: warning: don't use underscores in Go names; func go_base_string_change should be goBaseStringChange (golint)
    • Line 57: warning: don't use underscores in Go names; func go_base_string_substring should be goBaseStringSubstring (golint)
    • GoLang-PlayGround/Go2Me/go_base/slice_map_test.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: don't use underscores in Go names; func test_array should be testArray (golint)
    • Line 41: warning: don't use underscores in Go names; func test_slice should be testSlice (golint)
    • Line 94: warning: don't use underscores in Go names; func test_map should be testMap (golint)
    • GoLang-PlayGround/util/timestamp/calculate.go
    • Line 5: warning: comment on exported function CalcDurationLocation should be of the form "CalcDurationLocation ..." (golint)
    • Line 20: warning: comment on exported function CalcDurationUTC should be of the form "CalcDurationUTC ..." (golint)
    • Line 33: warning: comment on exported function CalcDurationSecondUTC should be of the form "CalcDurationSecondUTC ..." (golint)
    • Line 39: warning: comment on exported function CalcDurationMicroUTC should be of the form "CalcDurationMicroUTC ..." (golint)
    • Line 45: warning: comment on exported function CalcDayLocation should be of the form "CalcDayLocation ..." (golint)
    • Line 60: warning: comment on exported function CalcDayUTC should be of the form "CalcDayUTC ..." (golint)
    • Line 73: warning: comment on exported function CalcDaySecondUTC should be of the form "CalcDaySecondUTC ..." (golint)
    • Line 79: warning: comment on exported function CalcDayMicroUTC should be of the form "CalcDayMicroUTC ..." (golint)
    • Line 85: warning: comment on exported function CalcDayLocationZero should be of the form "CalcDayLocationZero ..." (golint)
    • Line 102: warning: comment on exported function CalcDayUTCZero should be of the form "CalcDayUTCZero ..." (golint)
    • Line 117: warning: exported function CalcDaySecondUTCZero should have comment or be unexported (golint)
    • Line 121: warning: exported function CalcDayMicroUTCZero should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_parse/aes_parse.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 20: warning: don't use underscores in Go names; func simple_http_get should be simpleHTTPGet (golint)
    • Line 44: warning: exported function AES_Http_Get should have comment or be unexported (golint)
    • Line 44: warning: don't use underscores in Go names; func AES_Http_Get should be AESHTTPGet (golint)
    • GoLang-PlayGround/Go2Me/go_routine/go_routine_token_design.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type TokenHeatBeat should have comment or be unexported (golint)
    • Line 20: warning: exported const LEN_CHAN_OF_TOKEN should have comment or be unexported (golint)
    • Line 21: warning: exported const DEFAULT_TIME_SEC should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function NewTokenInfo should be of the form "NewTokenInfo ..." (golint)
    • Line 46: warning: don't use underscores in Go names; var res_int should be resInt (golint)
    • Line 77: warning: comment on exported function ReadTokenByGoto should be of the form "ReadTokenByGoto ..." (golint)
    • GoLang-PlayGround/util/security/base64.go
    • Line 5: warning: exported function Base64StdEncoding should have comment or be unexported (golint)
    • Line 9: warning: exported function Base64StdDecoding should have comment or be unexported (golint)
    • Line 17: warning: exported function Base64URLEncoding should have comment or be unexported (golint)
    • Line 21: warning: exported function Base64URLDecoding should have comment or be unexported (golint)
    • Line 29: warning: exported function Base64TripleURLEncoding should have comment or be unexported (golint)
    • Line 44: warning: exported function Base64TripleURLDecoding should have comment or be unexported (golint)
    • Line 71: warning: exported function ReverseBase64URLDecode should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_time_count/run_count.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported function StringsJoinSliceStringTime should have comment or be unexported (golint)
    • Line 10: warning: don't use underscores in Go names; var start_time should be startTime (golint)
    • Line 12: warning: don't use underscores in Go names; var end_time should be endTime (golint)
    • GoLang-PlayGround/Go2Me/go_safe/xxteaUse.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported function XByteEncode should have comment or be unexported (golint)
    • Line 13: warning: exported function XByteDecode should have comment or be unexported (golint)
    • Line 18: warning: exported function XHexStringEncode should have comment or be unexported (golint)
    • Line 24: warning: exported function XHexStringDecode should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_routine/go_routine_out_time.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: comment on exported const DEFAULT_TIME_OUT should be of the form "DEFAULT_TIME_OUT ..." (golint)
    • Line 11: warning: don't use underscores in Go names; func count_sum_out should be countSumOut (golint)
    • Line 11: warning: don't use underscores in Go names; func parameter is_time_out should be isTimeOut (golint)
    • Line 25: warning: don't use underscores in Go names; func try_count_sum_out should be tryCountSumOut (golint)
    • Line 25: warning: don't use underscores in Go names; func parameter is_time_out should be isTimeOut (golint)
    • GoLang-PlayGround/Go2Me/go_parse/json_parse.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported type MyData should have comment or be unexported (golint)
    • Line 15: warning: exported type DefaultData should have comment or be unexported (golint)
    • GoLang-PlayGround/util/security/unicode.go
    • Line 10: warning: exported function URLPathEncode should have comment or be unexported (golint)
    • Line 14: warning: exported function URLPathDecode should have comment or be unexported (golint)
    • Line 18: warning: exported function URLQueryEncode should have comment or be unexported (golint)
    • Line 22: warning: exported function URLQueryDecode should have comment or be unexported (golint)
    • Line 26: warning: exported function UnicodeDecode should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_robot/robot_demo.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported function OSX_Open_Chrome_To_GitHub should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; func OSX_Open_Chrome_To_GitHub should be OSXOpenChromeToGitHub (golint)
    • GoLang-PlayGround/Go2Me/go_parse/multi_json_parase.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: don't use underscores in Go names; var json_data should be jsonData (golint)
    • Line 12: warning: exported type Proto should have comment or be unexported (golint)
    • Line 17: warning: exported type Info should have comment or be unexported (golint)
    • Line 25: warning: exported type Body should have comment or be unexported (golint)
    • Line 31: warning: exported function Test_mutli_json_double should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; func Test_mutli_json_double should be TestMutliJSONDouble (golint)
    • GoLang-PlayGround/Go2Me/go_byte/endian.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 5: warning: comment on exported function IsLittleEndian should be of the form "IsLittleEndian ..." (golint)
    • Line 14: warning: exported function IsBigEndian should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_timer/interval.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 10: warning: comment on exported function SetInterval should be of the form "SetInterval ..." (golint)
    • Line 15: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • GoLang-PlayGround/DesignPatterns/OptionMode/OptionFunc.go
    • Line 1: warning: don't use MixedCaps in package name; OptionMode should be optionmode (golint)
    • Line 3: warning: exported type Option should have comment or be unexported (golint)
    • Line 9: warning: exported type OptionFunc should have comment or be unexported (golint)
    • Line 23: warning: exported function NewOption should have comment or be unexported (golint)
    • Line 40: warning: exported function WithA should have comment or be unexported (golint)
    • Line 46: warning: exported function WithB should have comment or be unexported (golint)
    • Line 52: warning: exported function WithC should have comment or be unexported (golint)
    • GoLang-PlayGround/util/timestamp/compare.go
    • Line 5: warning: exported function CompareUTCSecondLT should have comment or be unexported (golint)
    • Line 9: warning: exported function CompareUTCLT should have comment or be unexported (golint)
    • Line 24: warning: exported function CompareLocationLT should have comment or be unexported (golint)
    • Line 40: warning: exported function CompareUTCSecondGT should have comment or be unexported (golint)
    • Line 44: warning: exported function CompareUTCGT should have comment or be unexported (golint)
    • Line 59: warning: exported function CompareLocationGT should have comment or be unexported (golint)
    • Line 75: warning: exported function CompareUTCEQ should have comment or be unexported (golint)
    • Line 90: warning: exported function CompareUTCSecondEQ should have comment or be unexported (golint)
    • Line 94: warning: exported function CompareLocationEQ should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_base/struct_test.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 52: warning: don't use underscores in Go names; var tb_Older should be tbOlder (golint)
    • Line 52: warning: don't use underscores in Go names; var tb_diff should be tbDiff (golint)
    • Line 53: warning: don't use underscores in Go names; var tp_Older should be tpOlder (golint)
    • Line 53: warning: don't use underscores in Go names; var tp_diff should be tpDiff (golint)
    • Line 54: warning: don't use underscores in Go names; var bp_Older should be bpOlder (golint)
    • Line 54: warning: don't use underscores in Go names; var bp_diff should be bpDiff (golint)
    • GoLang-PlayGround/Go2Me/go_time_count/math_count.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported function MultiAdd should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; var start_time should be startTime (golint)
    • Line 26: warning: don't use underscores in Go names; var end_time should be endTime (golint)
    • GoLang-PlayGround/Go2Me/go_http/proxyHttp.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type ProxyFlag should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 31: warning: exported function Bind should have comment or be unexported (golint)
    • GoLang-PlayGround/util/emoji/emoji.go
    • Line 28: warning: comment on exported function UnicodeToEmoji should be of the form "UnicodeToEmoji ..." (golint)
    • Line 45: warning: comment on exported function EmojiToUnicode should be of the form "EmojiToUnicode ..." (golint)
    • Line 61: warning: comment on exported function ModifiedEmojiStringToUnicode should be of the form "ModifiedEmojiStringToUnicode ..." (golint)
    • Line 70: warning: comment on exported function ModifiedEmojiToUnicode should be of the form "ModifiedEmojiToUnicode ..." (golint)
    • Line 126: warning: exported function EncodeStringToUTF16Int should have comment or be unexported (golint)
    • Line 154: warning: exported function DecodeUTF16IntToString should have comment or be unexported (golint)
    • Line 191: warning: exported function EmojiToUTF16 should have comment or be unexported (golint)
    • Line 200: warning: exported function EmojiToCodePoint should have comment or be unexported (golint)
    • Line 215: warning: exported function CodePoint2Emoji should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_routine/go_deadlock.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 5: warning: exported const MaxBizCount should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function SolveDeadlockBySelect should be of the form "SolveDeadlockBySelect ..." (golint)
    • Line 45: warning: comment on exported function SolveDeadlockByClose should be of the form "SolveDeadlockByClose ..." (golint)
    • GoLang-PlayGround/util/timestamp/parse.go
    • Line 5: warning: comment on exported function ParseTimestamp should be of the form "ParseTimestamp ..." (golint)
    • Line 22: warning: comment on exported function ParseTimestampSecond should be of the form "ParseTimestampSecond ..." (golint)
    • Line 27: warning: comment on exported function ParesTimestampMicro should be of the form "ParesTimestampMicro ..." (golint)
    • Line 32: warning: comment on exported function ParseLocation should be of the form "ParseLocation ..." (golint)
    • Line 53: warning: exported function ParseLocationISO8601TimeSecondUTC should have comment or be unexported (golint)
    • Line 57: warning: exported function ParseLocationISO8601TimeSecond should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function ParseLocationSecond should be of the form "ParseLocationSecond ..." (golint)
    • Line 66: warning: comment on exported function ParseLocationMicro should be of the form "ParseLocationMicro ..." (golint)
    • GoLang-PlayGround/Go2Me/go_parse/ios8583_parse.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 7: warning: exported type Data should have comment or be unexported (golint)
    • Line 16: warning: exported function DataMessage8583BCD should have comment or be unexported (golint)
    • Line 23: warning: exported function DataMessage8583ASCII should have comment or be unexported (golint)
    • GoLang-PlayGround/Go2Me/go_reflect/ref_function.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported function UseMethodByName should have comment or be unexported (golint)
    • GoLang-PlayGround/util/timestamp/now.go
    • Line 7: warning: exported function UTCTimeSecond should have comment or be unexported (golint)
    • Line 13: warning: exported function UTCTimeMicro should have comment or be unexported (golint)
    • Line 20: warning: comment on exported function LocationSecond should be of the form "LocationSecond ..." (golint)
    • Line 30: warning: comment on exported function LocationMicro should be of the form "LocationMicro ..." (golint)
    • Line 40: warning: exported function LocalTimeSecond should have comment or be unexported (golint)
    • Line 44: warning: exported function LocalTimeMicro should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!