Report for github.com/lijinghuatongxue/utils

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

    • utils/WgetDownLoadFile.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 8: warning: exported function DlFileUseWget should have comment or be unexported (golint)
    • utils/cryptography.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 8: warning: exported function Base64Encode should have comment or be unexported (golint)
    • Line 14: warning: exported function Base64Decode should have comment or be unexported (golint)
    • utils/makeChannel.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 7: warning: exported function MakeChannel should have comment or be unexported (golint)
    • utils/progressBar.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 8: warning: exported function ProgressBar should have comment or be unexported (golint)
    • utils/fileOperateMain.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 8: warning: exported function WfMain should have comment or be unexported (golint)
    • Line 17: warning: exported function ReadFile2StrMain should have comment or be unexported (golint)
    • Line 25: warning: exported function ListFileDir should have comment or be unexported (golint)
    • Line 33: warning: exported function FindDirAllFile should have comment or be unexported (golint)
    • utils/for-file-lines.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 11: warning: comment on exported function ForFileLines should be of the form "ForFileLines ..." (golint)
    • Line 36: warning: comment on exported function ForFileLinesExecFunc should be of the form "ForFileLinesExecFunc ..." (golint)
    • utils/getIpv4IPICMP.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 10: warning: exported function GetIpv4IpICMP should have comment or be unexported (golint)
    • utils/EncryptionAndDecryption/Base64.go
    • Line 1: warning: don't use MixedCaps in package name; EncryptionAndDecryption should be encryptionanddecryption (golint)
    • Line 5: warning: exported function Base64Encode should have comment or be unexported (golint)
    • Line 9: warning: exported function Base64Decode should have comment or be unexported (golint)
    • utils/fileOperate/listFileDir.go
    • Line 1: warning: don't use MixedCaps in package name; fileOperate should be fileoperate (golint)
    • Line 10: warning: comment on exported function ListDir should be of the form "ListDir ..." (golint)
    • Line 30: warning: comment on exported function FindDirAllFile should be of the form "FindDirAllFile ..." (golint)
    • utils/fileOperate/read-file.go
    • Line 1: warning: don't use MixedCaps in package name; fileOperate should be fileoperate (golint)
    • Line 9: warning: exported function ReadFile2Str should have comment or be unexported (golint)
    • utils/checkIpv4IP.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 8: warning: exported function CheckIp should have comment or be unexported (golint)
    • Line 12: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • utils/tcpScanPort.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 8: warning: exported function CheckPort should have comment or be unexported (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • utils/fileOperate/write-file.go
    • Line 1: warning: don't use MixedCaps in package name; fileOperate should be fileoperate (golint)
    • Line 17: warning: exported function WriteFile should have comment or be unexported (golint)
    • utils/getDomainIP.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 10: warning: exported function GetDomainIP should have comment or be unexported (golint)
    • utils/randomCharacter.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 10: warning: comment on exported function AlgorithmRandomCharacter should be of the form "AlgorithmRandomCharacter ..." (golint)
    • Line 18: warning: comment on exported function AlgorithmRandomNum should be of the form "AlgorithmRandomNum ..." (golint)
    • utils/git-clone.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 13: warning: exported function AuthClone should have comment or be unexported (golint)
    • Line 42: warning: exported function Clone should have comment or be unexported (golint)
    • utils/go-tar.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 30: warning: exported function Tar should have comment or be unexported (golint)
    • Line 76: warning: exported function Decompression should have comment or be unexported (golint)
    • utils/remoteSsh.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 11: warning: exported function RemoteCmd should have comment or be unexported (golint)
    • utils/DlFtpFile.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 12: warning: comment on exported function DlFtpFile should be of the form "DlFtpFile ..." (golint)
    • Line 57: warning: exported function CuttingFtpFileAddress should have comment or be unexported (golint)
    • utils/chk-https-cert.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 21: warning: comment on exported function ChkHTTPSCert should be of the form "ChkHTTPSCert ..." (golint)
    • utils/dl-file.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 12: warning: exported function DlFile should have comment or be unexported (golint)
    • utils/generateTpl.go
    • Line 1: warning: don't use MixedCaps in package name; meUtils should be meutils (golint)
    • Line 22: warning: error should be the last type when returning multiple items (golint)
    • Line 22: warning: exported function GenerateTpl should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!