Preparing report...

Report for github.com/sinlov/fastEncryptDecode

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


golint0%

Golint is a linter for Go source code.

    • fastEncryptDecode/fastEnDeCode.go
    • Line 1: warning: don't use MixedCaps in package name; fastEncryptDecode should be fastencryptdecode (golint)
    • Line 15: warning: exported type KeySizeError should have comment or be unexported (golint)
    • Line 35: warning: comment on exported function ByteArr2Str should be of the form "ByteArr2Str ..." (golint)
    • Line 45: warning: exported function ByteArr2HexStr should have comment or be unexported (golint)
    • Line 57: warning: exported function Uint16ToBytes should have comment or be unexported (golint)
    • Line 64: warning: exported function Uint32ToBytes should have comment or be unexported (golint)
    • Line 73: warning: exported function Uint64ToBytes should have comment or be unexported (golint)
    • Line 86: warning: exported function ByteArr2HexStrArr should have comment or be unexported (golint)
    • Line 103: warning: exported function HexStr2ByteArr should have comment or be unexported (golint)
    • Line 118: warning: exported function Utf82Unicode should have comment or be unexported (golint)
    • Line 124: warning: exported function Unicode2Utf8 should have comment or be unexported (golint)
    • Line 140: warning: comment on exported function String2MD5 should be of the form "String2MD5 ..." (golint)
    • Line 148: warning: exported function MD5Verify should have comment or be unexported (golint)
    • Line 152: warning: comment on exported function MD5hash should be of the form "MD5hash ..." (golint)
    • Line 168: warning: comment on exported function AES_CBC_PKCS7_Encrypt should be of the form "AES_CBC_PKCS7_Encrypt ..." (golint)
    • Line 169: warning: don't use underscores in Go names; func AES_CBC_PKCS7_Encrypt should be AESCBCPKCS7Encrypt (golint)
    • Line 174: warning: comment on exported function AES_CBC_PKCS7_EncryptByte should be of the form "AES_CBC_PKCS7_EncryptByte ..." (golint)
    • Line 175: warning: don't use underscores in Go names; func AES_CBC_PKCS7_EncryptByte should be AESCBCPKCS7EncryptByte (golint)
    • Line 194: warning: exported function AES_CBC_PKCS7_Decrypt should have comment or be unexported (golint)
    • Line 194: warning: don't use underscores in Go names; func AES_CBC_PKCS7_Decrypt should be AESCBCPKCS7Decrypt (golint)
    • Line 200: warning: exported function AES_CBC_PKCS7_DecryptByte should have comment or be unexported (golint)
    • Line 200: warning: don't use underscores in Go names; func AES_CBC_PKCS7_DecryptByte should be AESCBCPKCS7DecryptByte (golint)
    • Line 230: warning: exported function AES_ECB_PKCS5_Encrypt should have comment or be unexported (golint)
    • Line 230: warning: don't use underscores in Go names; func AES_ECB_PKCS5_Encrypt should be AESECBPKCS5Encrypt (golint)
    • Line 236: warning: exported function AES_ECB_PKCS5_EncryptByte should have comment or be unexported (golint)
    • Line 236: warning: don't use underscores in Go names; func AES_ECB_PKCS5_EncryptByte should be AESECBPKCS5EncryptByte (golint)
    • Line 254: warning: exported function AES_ECB_PKCS5_Decrypt should have comment or be unexported (golint)
    • Line 254: warning: don't use underscores in Go names; func AES_ECB_PKCS5_Decrypt should be AESECBPKCS5Decrypt (golint)
    • Line 260: warning: exported function AES_ECB_PKCS5_DecryptByte should have comment or be unexported (golint)
    • Line 260: warning: don't use underscores in Go names; func AES_ECB_PKCS5_DecryptByte should be AESECBPKCS5DecryptByte (golint)
    • Line 277: warning: exported function Base64UrlSafeEncode should have comment or be unexported (golint)
    • Line 286: warning: exported function PKCS5Padding should have comment or be unexported (golint)
    • Line 292: warning: exported function PKCS5UnPadding should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!