Preparing report...

Report for github.com/Akagi201/utilgo

A+    Excellent!    Found 14 issues across 67 files

Tweet

gofmt97%

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!


gocyclo97%

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.

    • utilgo/binary/binary.go
    • Line 67: warning: cyclomatic complexity 33 of function (*Encoder).Encode() is high (> 15) (gocyclo)
    • Line 194: warning: cyclomatic complexity 30 of function (*Decoder).Decode() is high (> 15) (gocyclo)

golint86%

Golint is a linter for Go source code.

    • utilgo/slices/slices.go
    • Line 229: warning: exported function SumInt should have comment or be unexported (golint)
    • Line 237: warning: exported function SumFloat should have comment or be unexported (golint)
    • utilgo/files/files.go
    • Line 1: warning: package comment should be of the form "Package files ..." (golint)
    • Line 109: warning: comment on exported function ReadPropertiesFile should be of the form "ReadPropertiesFile ..." (golint)
    • utilgo/chain/chain.go
    • Line 6: warning: comment on exported type Constructor should be of the form "Constructor ..." (with optional leading article) (golint)
    • utilgo/ips/ips.go
    • Line 8: warning: comment on exported function LocalIPv4s should be of the form "LocalIPv4s ..." (golint)
    • utilgo/jobber/jobber.go
    • Line 15: warning: exported const TimeWildcard should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type TimeSpec should have comment or be unexported (golint)
    • Line 23: warning: exported type FullTimeSpec should have comment or be unexported (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: exported method FullTimeSpec.Next should have comment or be unexported (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 114: warning: exported type WildcardTimeSpec should have comment or be unexported (golint)
    • Line 121: warning: exported method WildcardTimeSpec.Satisfied should have comment or be unexported (golint)
    • Line 125: warning: exported type OneValTimeSpec should have comment or be unexported (golint)
    • Line 133: warning: exported method OneValTimeSpec.Satisfied should have comment or be unexported (golint)
    • Line 137: warning: exported type SetTimeSpec should have comment or be unexported (golint)
    • Line 146: warning: exported method SetTimeSpec.Satisfied should have comment or be unexported (golint)
    • Line 155: warning: exported function ParseFullTimeSpec should have comment or be unexported (golint)
    • utilgo/signs/signs.go
    • Line 13: warning: exported function GetMd5Sign should have comment or be unexported (golint)
    • Line 24: warning: exported function GetSha1Sign should have comment or be unexported (golint)
    • Line 33: warning: exported function GetSha256Sign should have comment or be unexported (golint)
    • Line 42: warning: exported function GetSha512Sign should have comment or be unexported (golint)
    • Line 51: warning: exported function GetHmacSha1Sign should have comment or be unexported (golint)
    • Line 60: warning: exported function GetHmacMd5Sign should have comment or be unexported (golint)
    • Line 69: warning: exported function GetHmacSha384Sign should have comment or be unexported (golint)
    • Line 78: warning: exported function GetHmacSha256B64Sign should have comment or be unexported (golint)
    • Line 88: warning: exported function GetHmacSha512B64Sign should have comment or be unexported (golint)
    • Line 92: warning: don't use underscores in Go names; var hex_data should be hexData (golint)
    • Line 93: warning: don't use underscores in Go names; var hash_hmac_bytes should be hashHmacBytes (golint)
    • utilgo/binary/binary.go
    • Line 19: warning: exported var LittleEndian should have comment or be unexported (golint)
    • Line 24: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 32: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 36: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 43: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 67: warning: exported method Encoder.Encode should have comment or be unexported (golint)
    • Line 67: warning: receiver name b should be consistent with previous receiver name e for Encoder (golint)
    • Line 182: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 187: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 194: warning: exported method Decoder.Decode should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words