Preparing report...

Report for github.com/liuxp0827/govpr

B    Not bad!    Found 30 issues across 32 files

Tweet

gofmt59%

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!


gocyclo84%

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.

    • govpr/gmm/gmm.go
    • Line 242: warning: cyclomatic complexity 20 of function (*GMM).EM() is high (> 15) (gocyclo)
    • Line 86: warning: cyclomatic complexity 16 of function (*GMM).LoadModel() is high (> 15) (gocyclo)
    • govpr/param/cparam.go
    • Line 196: warning: cyclomatic complexity 35 of function (*CParam).Wav2Mfcc() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 19 of function (*CParam).InitFBank2() is high (> 15) (gocyclo)
    • Line 628: warning: cyclomatic complexity 19 of function (*CParam).PDASCC() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 16 of function (*CParam).static2Full() is high (> 15) (gocyclo)

golint9%

Golint is a linter for Go source code.

    • govpr/param/cparam.go
    • Line 11: warning: exported type CParam should have comment or be unexported (golint)
    • Line 20: warning: exported function NewCParam should have comment or be unexported (golint)
    • Line 26: warning: exported method CParam.GetMfcc should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method CParam.InitFBank should be of the form "InitFBank ..." (golint)
    • Line 42: warning: exported method CParam.InitFBank2 should have comment or be unexported (golint)
    • Line 162: warning: exported method CParam.InitMfcc should have comment or be unexported (golint)
    • Line 196: warning: exported method CParam.Wav2Mfcc should have comment or be unexported (golint)
    • Line 451: warning: comment on exported method CParam.FeatureNorm should be of the form "FeatureNorm ..." (golint)
    • Line 503: warning: exported method CParam.FeatureNorm2 should have comment or be unexported (golint)
    • Line 563: warning: comment on exported method CParam.IsZeroGlobalMean should be of the form "IsZeroGlobalMean ..." (golint)
    • Line 588: warning: don't use underscores in Go names; method parameter p_FeatBuf should be pFeatBuf (golint)
    • Line 588: warning: don't use underscores in Go names; method parameter p_nVecSize should be pNVecSize (golint)
    • Line 588: warning: don't use underscores in Go names; method parameter p_nFrameNum should be pNFrameNum (golint)
    • Line 615: warning: comment on exported method CParam.DPSCC should be of the form "DPSCC ..." (golint)
    • Line 627: warning: comment on exported method CParam.PDASCC should be of the form "PDASCC ..." (golint)
    • Line 724: warning: don't use underscores in Go names; var minus_res should be minusRes (golint)
    • Line 964: warning: don't use underscores in Go names; func __max should be _Max (golint)
    • Line 971: warning: don't use underscores in Go names; func __min should be _Min (golint)
    • govpr/log/logger.go
    • Line 13: warning: comment on exported function SetLevel should be of the form "SetLevel ..." (golint)
    • Line 19: warning: exported function GetDefaultLogger should have comment or be unexported (golint)
    • Line 23: warning: exported function SetLogFuncCall should have comment or be unexported (golint)
    • Line 27: warning: exported function SetLogFile should have comment or be unexported (golint)
    • Line 36: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 40: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 44: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 48: warning: comment on exported function Warn should be of the form "Warn ..." (golint)
    • Line 53: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 57: warning: exported function Info should have comment or be unexported (golint)
    • Line 61: warning: exported function Infof should have comment or be unexported (golint)
    • Line 70: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 74: warning: exported function Trace should have comment or be unexported (golint)
    • Line 78: warning: exported function Tracef should have comment or be unexported (golint)
    • govpr/math/math.go
    • Line 17: warning: comment on exported function FFT should be of the form "FFT ..." (golint)
    • Line 85: warning: comment on exported function DCT should be of the form "DCT ..." (golint)
    • govpr/file/vprfile.go
    • Line 11: warning: exported type VPRFile should have comment or be unexported (golint)
    • Line 16: warning: exported function NewVPRFile should have comment or be unexported (golint)
    • Line 31: warning: exported method VPRFile.PutInt should have comment or be unexported (golint)
    • Line 42: warning: exported method VPRFile.PutByte should have comment or be unexported (golint)
    • Line 46: warning: exported method VPRFile.PutFloat64 should have comment or be unexported (golint)
    • Line 53: warning: exported method VPRFile.GetInt should have comment or be unexported (golint)
    • Line 60: warning: exported method VPRFile.GetByte should have comment or be unexported (golint)
    • Line 64: warning: exported method VPRFile.GetFloat64 should have comment or be unexported (golint)
    • Line 77: warning: exported method VPRFile.GetFloat32 should have comment or be unexported (golint)
    • Line 90: warning: exported method VPRFile.Close should have comment or be unexported (golint)
    • govpr/httpapi/controllers/AppInfoController.go
    • Line 9: warning: exported type AppInfoController should have comment or be unexported (golint)
    • Line 13: warning: exported method AppInfoController.RegisterApp should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: exported method AppInfoController.DeleteApp should have comment or be unexported (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 124: warning: exported method AppInfoController.GetAppInfo should have comment or be unexported (golint)
    • Line 124: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/httpapi/controllers/DeveloperController.go
    • Line 9: warning: exported type DeveloperController should have comment or be unexported (golint)
    • Line 13: warning: exported method DeveloperController.RegisterDeveloper should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: exported method DeveloperController.DeleteDeveloper should have comment or be unexported (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/httpapi/controllers/UserController.go
    • Line 13: warning: comment on exported type UserController should be of the form "UserController ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported method UserController.RegisterUser should be of the form "RegisterUser ..." (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 56: warning: comment on exported method UserController.DetectVerify should be of the form "DetectVerify ..." (golint)
    • Line 61: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 99: warning: comment on exported method UserController.DeleteUser should be of the form "DeleteUser ..." (golint)
    • Line 104: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 135: warning: comment on exported method UserController.AddSample should be of the form "AddSample ..." (golint)
    • Line 140: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 233: warning: comment on exported method UserController.ClearSamples should be of the form "ClearSamples ..." (golint)
    • Line 238: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 283: warning: comment on exported method UserController.DetectRegister should be of the form "DetectRegister ..." (golint)
    • Line 288: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/httpapi/models/userCache.go
    • Line 8: warning: exported type CacheMem should have comment or be unexported (golint)
    • Line 15: warning: exported var UserCache should have comment or be unexported (golint)
    • Line 17: warning: exported function InitUserCache should have comment or be unexported (golint)
    • Line 26: warning: exported function NewCacheMem should have comment or be unexported (golint)
    • Line 34: warning: exported method CacheMem.Get should have comment or be unexported (golint)
    • Line 54: warning: exported method CacheMem.Add should have comment or be unexported (golint)
    • Line 76: warning: exported method CacheMem.Modify should have comment or be unexported (golint)
    • Line 110: warning: exported method CacheMem.RemoveAll should have comment or be unexported (golint)
    • govpr/log/console.go
    • Line 10: warning: exported type Brush should have comment or be unexported (golint)
    • Line 12: warning: exported function NewBrush should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function NewConsole should be of the form "NewConsole ..." (golint)
    • Line 49: warning: comment on exported method ConsoleWriter.Init should be of the form "Init ..." (golint)
    • Line 58: warning: comment on exported method ConsoleWriter.WriteMsg should be of the form "WriteMsg ..." (golint)
    • Line 72: warning: comment on exported method ConsoleWriter.Destroy should be of the form "Destroy ..." (golint)
    • Line 77: warning: comment on exported method ConsoleWriter.Flush should be of the form "Flush ..." (golint)
    • govpr/msgcode.go
    • Line 7: warning: error var LSV_ERR_ENGINE_NOT_INIT should have name of the form ErrFoo (golint)
    • Line 7: warning: exported var LSV_ERR_ENGINE_NOT_INIT should have comment or be unexported (golint)
    • Line 8: warning: error var LSV_ERR_TIMEOUT should have name of the form ErrFoo (golint)
    • Line 9: warning: error var LSV_ERR_NEED_MORE_SAMPLE should have name of the form ErrFoo (golint)
    • Line 10: warning: error var LSV_ERR_ILLEGAL_HANDLE should have name of the form ErrFoo (golint)
    • Line 11: warning: error var LSV_ERR_FILE_ERROR should have name of the form ErrFoo (golint)
    • Line 12: warning: error var LSV_ERR_NO_AVAILABLE_DATA should have name of the form ErrFoo (golint)
    • Line 13: warning: error var LSV_ERR_VOICE_TOO_SHORT should have name of the form ErrFoo (golint)
    • Line 14: warning: error var LSV_ERR_TRAINING_FAILED should have name of the form ErrFoo (golint)
    • Line 15: warning: error var LSV_ERR_VERIFY_FAILED should have name of the form ErrFoo (golint)
    • Line 16: warning: error var LSV_ERR_MODEL_NOT_FOUND should have name of the form ErrFoo (golint)
    • Line 17: warning: error var LSV_ERR_MODEL_LOAD_FAILED should have name of the form ErrFoo (golint)
    • Line 18: warning: error var LSV_ERR_MEM_INSUFFICIENT should have name of the form ErrFoo (golint)
    • Line 19: warning: error var LSV_ERR_CONF_PARAM should have name of the form ErrFoo (golint)
    • Line 20: warning: error var LSV_ERR_NO_ACTIVE_SPEECH should have name of the form ErrFoo (golint)
    • Line 21: warning: error var LSV_ERR_INVALID_PARAM should have name of the form ErrFoo (golint)
    • Line 24: warning: exported function NewError should have comment or be unexported (golint)
    • govpr/httpapi/models/wavesAndcontents.go
    • Line 13: warning: exported method User.GetAllWavesAndContents should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: don't use underscores in Go names; var train_data_path should be trainDataPath (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 44: warning: don't use underscores in Go names; var train_data should be trainData (golint)
    • Line 48: warning: don't use underscores in Go names; var train_data_path should be trainDataPath (golint)
    • Line 87: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: don't use underscores in Go names; var train_data_path should be trainDataPath (golint)
    • govpr/httpapi/models/user.go
    • Line 20: warning: exported type User should have comment or be unexported (golint)
    • Line 31: warning: exported method AppInfo.NewUser should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 45: warning: exported method AppInfo.AddUser should have comment or be unexported (golint)
    • Line 45: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 57: warning: exported method AppInfo.DeleteUser should have comment or be unexported (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 73: warning: don't use underscores in Go names; var train_data_path should be trainDataPath (golint)
    • Line 89: warning: exported method AppInfo.GetUserByIdForTrain should have comment or be unexported (golint)
    • Line 89: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 105: warning: exported method AppInfo.GetUserById should have comment or be unexported (golint)
    • Line 105: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 116: warning: exported method AppInfo.AddAndUpdateUser should have comment or be unexported (golint)
    • Line 116: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 132: warning: exported method AppInfo.UpdateUser should have comment or be unexported (golint)
    • Line 132: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 142: warning: exported method AppInfo.GetAllUsers should have comment or be unexported (golint)
    • Line 142: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 152: warning: exported function IsExist should have comment or be unexported (golint)
    • govpr/file/binary.go
    • Line 9: warning: exported function GetUint16LE should have comment or be unexported (golint)
    • Line 13: warning: exported function PutUint16LE should have comment or be unexported (golint)
    • Line 17: warning: exported function GetUint16BE should have comment or be unexported (golint)
    • Line 21: warning: exported function PutUint16BE should have comment or be unexported (golint)
    • Line 25: warning: exported function GetUint32LE should have comment or be unexported (golint)
    • Line 29: warning: exported function PutUint32LE should have comment or be unexported (golint)
    • Line 33: warning: exported function GetUint32BE should have comment or be unexported (golint)
    • Line 37: warning: exported function PutUint32BE should have comment or be unexported (golint)
    • Line 41: warning: exported function GetUint64LE should have comment or be unexported (golint)
    • Line 45: warning: exported function PutUint64LE should have comment or be unexported (golint)
    • Line 49: warning: exported function GetUint64BE should have comment or be unexported (golint)
    • Line 53: warning: exported function PutUint64BE should have comment or be unexported (golint)
    • Line 57: warning: exported function GetFloat32BE should have comment or be unexported (golint)
    • Line 61: warning: exported function PutFloat32BE should have comment or be unexported (golint)
    • Line 65: warning: exported function GetFloat32LE should have comment or be unexported (golint)
    • Line 69: warning: exported function PutFloat32LE should have comment or be unexported (golint)
    • Line 73: warning: exported function GetFloat64BE should have comment or be unexported (golint)
    • Line 77: warning: exported function PutFloat64BE should have comment or be unexported (golint)
    • Line 81: warning: exported function GetFloat64LE should have comment or be unexported (golint)
    • Line 85: warning: exported function PutFloat64LE should have comment or be unexported (golint)
    • Line 89: warning: exported function UvarintSize should have comment or be unexported (golint)
    • Line 98: warning: exported function VarintSize should have comment or be unexported (golint)
    • Line 106: warning: exported function GetUvarint should have comment or be unexported (golint)
    • Line 110: warning: exported function PutUvarint should have comment or be unexported (golint)
    • Line 114: warning: exported function GetVarint should have comment or be unexported (golint)
    • Line 118: warning: exported function PutVarint should have comment or be unexported (golint)
    • Line 122: warning: exported function ReadUvarint should have comment or be unexported (golint)
    • Line 126: warning: exported function ReadVarint should have comment or be unexported (golint)
    • govpr/waveIO/waveIO.go
    • Line 1: warning: don't use MixedCaps in package name; waveIO should be waveio (golint)
    • Line 11: warning: exported type WaveChunk should have comment or be unexported (golint)
    • Line 17: warning: exported method WaveChunk.Bytes should have comment or be unexported (golint)
    • Line 28: warning: exported type FmtChunk should have comment or be unexported (golint)
    • Line 39: warning: exported method FmtChunk.Bytes should have comment or be unexported (golint)
    • Line 73: warning: exported type DataChunk should have comment or be unexported (golint)
    • Line 78: warning: exported method DataChunk.Bytes should have comment or be unexported (golint)
    • Line 91: warning: exported type WavInfo should have comment or be unexported (golint)
    • Line 97: warning: exported type WaveIO should have comment or be unexported (golint)
    • Line 103: warning: exported method WaveIO.Bytes should have comment or be unexported (golint)
    • Line 115: warning: exported function WaveSave should have comment or be unexported (golint)
    • Line 165: warning: exported function WaveLoad should have comment or be unexported (golint)
    • Line 216: warning: exported function DelSilence should have comment or be unexported (golint)
    • Line 217: warning: don't use underscores in Go names; var max_sample_value should be maxSampleValue (golint)
    • govpr/engine.go
    • Line 14: warning: exported type VPREngine should have comment or be unexported (golint)
    • Line 32: warning: exported function NewVPREngine should have comment or be unexported (golint)
    • Line 53: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: exported method VPREngine.TrainModel should have comment or be unexported (golint)
    • Line 65: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: exported method VPREngine.VerifyModel should have comment or be unexported (golint)
    • Line 110: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 154: warning: exported method VPREngine.AddTrainBuffer should have comment or be unexported (golint)
    • Line 154: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 175: warning: exported method VPREngine.AddVerifyBuffer should have comment or be unexported (golint)
    • Line 175: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 196: warning: exported method VPREngine.ClearTrainBuffer should have comment or be unexported (golint)
    • Line 196: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 200: warning: exported method VPREngine.ClearVerifyBuffer should have comment or be unexported (golint)
    • Line 200: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 204: warning: exported method VPREngine.ClearAllBuffer should have comment or be unexported (golint)
    • Line 204: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 209: warning: exported method VPREngine.GetScore should have comment or be unexported (golint)
    • Line 209: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/httpapi/engine/engine.go
    • Line 14: warning: don't use underscores in Go names; var ubm_path should be ubmPath (golint)
    • Line 17: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/gmm/gmm.go
    • Line 11: warning: exported type GMM should have comment or be unexported (golint)
    • Line 23: warning: exported function NewGMM should have comment or be unexported (golint)
    • Line 33: warning: exported method GMM.Copy should have comment or be unexported (golint)
    • Line 66: warning: exported method GMM.DupModel should have comment or be unexported (golint)
    • Line 86: warning: exported method GMM.LoadModel should have comment or be unexported (golint)
    • Line 166: warning: exported method GMM.SaveModel should have comment or be unexported (golint)
    • Line 224: warning: exported method GMM.CopyFeatureData should have comment or be unexported (golint)
    • Line 242: warning: exported method GMM.EM should have comment or be unexported (golint)
    • Line 356: warning: exported method GMM.LProb should have comment or be unexported (golint)
    • Line 380: warning: comment on exported method GMM.LogAdd should be of the form "LogAdd ..." (golint)
    • Line 393: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 402: warning: comment on exported method GMM.LMixProb should be of the form "LMixProb ..." (golint)
    • Line 424: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • govpr/constant/const.go
    • Line 4: warning: comment on exported const REL_FACTOR should be of the form "REL_FACTOR ..." (golint)
    • Line 6: warning: exported const MAXLOP should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const PI should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const VAR_FLOOR should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported const VOC_BLOCK_LEN should be of the form "VOC_BLOCK_LEN ..." (golint)
    • Line 30: warning: exported const MIN_VOC_ENG should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported var DLOG2PAI should have comment or be unexported (golint)
    • Line 39: warning: exported const LOW_CUT_OFF should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; const FRAME_SHIFTt should be FRAMESHIFTt (golint)
    • govpr/example/main.go
    • Line 14: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 22: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 26: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 107: warning: don't use underscores in Go names; var self_score should be selfScore (golint)
    • Line 119: warning: don't use underscores in Go names; var other_score should be otherScore (golint)
    • govpr/httpapi/controllers/ModelController.go
    • Line 14: warning: don't use underscores in Go names; var model_dir should be modelDir (golint)
    • Line 16: warning: comment on exported type ModelController should be of the form "ModelController ..." (with optional leading article) (golint)
    • Line 21: warning: comment on exported method ModelController.TrainModel should be of the form "TrainModel ..." (golint)
    • Line 26: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 111: warning: comment on exported method ModelController.DeleteModel should be of the form "DeleteModel ..." (golint)
    • Line 116: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 151: warning: comment on exported method ModelController.VerifyModel should be of the form "VerifyModel ..." (golint)
    • Line 156: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/httpapi/models/app.go
    • Line 34: warning: exported method Developer.NewAppInfo should have comment or be unexported (golint)
    • Line 34: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: exported method Developer.AddAppInfo should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 94: warning: exported method Developer.UpdateAppInfo should have comment or be unexported (golint)
    • Line 94: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 129: warning: exported method Developer.DeleteAppInfo should have comment or be unexported (golint)
    • Line 129: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 159: warning: comment on exported method Developer.GetAppInfoByName should be of the form "GetAppInfoByName ..." (golint)
    • Line 160: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 181: warning: exported method Developer.GetAppInfoByToken should have comment or be unexported (golint)
    • Line 181: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 202: warning: exported function GetAppInfoByToken should have comment or be unexported (golint)
    • Line 223: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 245: warning: comment on exported method Developer.GetAppInfoById should be of the form "GetAppInfoById ..." (golint)
    • Line 246: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 267: warning: comment on exported method Developer.GetAllAppInfo should be of the form "GetAllAppInfo ..." (golint)
    • Line 268: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • govpr/log/file.go
    • Line 26: warning: don't use underscores in Go names; struct field maxlines_curlines should be maxlinesCurlines (golint)
    • Line 30: warning: don't use underscores in Go names; struct field maxsize_cursize should be maxsizeCursize (golint)
    • Line 35: warning: don't use underscores in Go names; struct field daily_opendate should be dailyOpendate (golint)
    • Line 46: warning: comment on exported type MuxWriter should be of the form "MuxWriter ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported method MuxWriter.SetFd should be of the form "SetFd ..." (golint)
    • Line 67: warning: comment on exported function NewFileWriter should be of the form "NewFileWriter ..." (golint)
    • Line 133: warning: comment on exported method FileLogWriter.WriteMsg should be of the form "WriteMsg ..." (golint)
    • Line 262: warning: comment on exported method FileLogWriter.Destroy should be of the form "Destroy ..." (golint)
    • Line 267: warning: comment on exported method FileLogWriter.Flush should be of the form "Flush ..." (golint)
    • govpr/log/log.go
    • Line 75: warning: exported function NewConsoleLogger should have comment or be unexported (golint)
    • Line 85: warning: exported method Logger.Async should have comment or be unexported (golint)
    • Line 110: warning: exported method Logger.SetLogFile should have comment or be unexported (golint)
    • Line 114: warning: comment on exported method Logger.DelLogger should be of the form "DelLogger ..." (golint)
    • Line 122: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 155: warning: comment on exported method Logger.SetLevel should be of the form "SetLevel ..." (golint)
    • Line 163: warning: comment on exported method Logger.SetLogFuncCallDepth should be of the form "SetLogFuncCallDepth ..." (golint)
    • Line 168: warning: comment on exported method Logger.GetLogFuncCallDepth should be of the form "GetLogFuncCallDepth ..." (golint)
    • Line 173: warning: comment on exported method Logger.EnableFuncCallDepth should be of the form "EnableFuncCallDepth ..." (golint)
    • Line 178: warning: exported method Logger.SetLogFuncCallWithDepth should have comment or be unexported (golint)
    • Line 183: warning: exported method Logger.SetLogFuncCall should have comment or be unexported (golint)
    • Line 204: warning: comment on exported method Logger.Errorf should be of the form "Errorf ..." (golint)
    • Line 221: warning: comment on exported method Logger.Fatalf should be of the form "Fatalf ..." (golint)
    • Line 228: warning: exported method Logger.Fatal should have comment or be unexported (golint)
    • Line 234: warning: comment on exported method Logger.Warnf should be of the form "Warnf ..." (golint)
    • Line 243: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 251: warning: comment on exported method Logger.Infof should be of the form "Infof ..." (golint)
    • Line 260: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 268: warning: comment on exported method Logger.Debugf should be of the form "Debugf ..." (golint)
    • Line 277: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 285: warning: comment on exported method Logger.Tracef should be of the form "Tracef ..." (golint)
    • Line 295: warning: exported method Logger.Trace should have comment or be unexported (golint)
    • Line 303: warning: comment on exported method Logger.Flush should be of the form "Flush ..." (golint)
    • Line 310: warning: comment on exported method Logger.Close should be of the form "Close ..." (golint)
    • govpr/httpapi/models/mysql.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported function InitMysql should have comment or be unexported (golint)
    • Line 44: warning: exported type DBEngine should have comment or be unexported (golint)
    • Line 47: warning: exported function NewDBEngine should have comment or be unexported (golint)
    • Line 55: warning: exported method DBEngine.AddDeveloper should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: exported method DBEngine.CheckDeveloper should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 64: warning: exported method DBEngine.FindDeveloperByName should have comment or be unexported (golint)
    • Line 64: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 68: warning: exported method DBEngine.UpdateDeveloperByName should have comment or be unexported (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 72: warning: exported method DBEngine.DeleteDeveloperByName should have comment or be unexported (golint)
    • Line 72: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: exported method DBEngine.UpdateDeveloperPassword should have comment or be unexported (golint)
    • Line 80: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: exported method DBEngine.CheckEmailIsExist should have comment or be unexported (golint)
    • Line 89: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 97: warning: exported method DBEngine.AddAppInfo should have comment or be unexported (golint)
    • Line 97: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 109: warning: exported method DBEngine.HasPermissionForAppInfo should have comment or be unexported (golint)
    • Line 109: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 118: warning: exported method DBEngine.GetAppInfoByName should have comment or be unexported (golint)
    • Line 118: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 126: warning: exported method DBEngine.GetAppInfoByToken should have comment or be unexported (golint)
    • Line 126: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 134: warning: exported method DBEngine.UpdateAppInfoByName should have comment or be unexported (golint)
    • Line 134: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 143: warning: exported method DBEngine.DeleteAppInfoByName should have comment or be unexported (golint)
    • Line 143: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 156: warning: exported method DBEngine.AddUser should have comment or be unexported (golint)
    • Line 156: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 166: warning: exported method DBEngine.DeleteUser should have comment or be unexported (golint)
    • Line 166: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 178: warning: exported method DBEngine.GetUserById should have comment or be unexported (golint)
    • Line 178: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 190: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 204: warning: exported method DBEngine.GetUserByIdForTrain should have comment or be unexported (golint)
    • Line 204: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 212: warning: exported method DBEngine.UpdateIsTrained should have comment or be unexported (golint)
    • Line 212: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 232: warning: exported method DBEngine.AddWavesAndContents should have comment or be unexported (golint)
    • Line 232: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 243: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 257: warning: exported method DBEngine.ClearWavesAndContents should have comment or be unexported (golint)
    • Line 257: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 268: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • govpr/httpapi/models/developer.go
    • Line 17: warning: exported type Developer should have comment or be unexported (golint)
    • Line 27: warning: exported function NewDeveloper should have comment or be unexported (golint)
    • Line 40: warning: exported function AddDeveloper should have comment or be unexported (golint)
    • Line 55: warning: exported function GetDeveloperByName should have comment or be unexported (golint)
    • Line 72: warning: exported function DeleteDeveloperByName should have comment or be unexported (golint)
    • Line 81: warning: exported function UpdateDeveloper should have comment or be unexported (golint)
    • Line 97: warning: exported function GetAllDevelopers should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.

    • govpr/gmm/gmm.go
    • Line 357: warning: ineffectual assignment to dgama (ineffassign)
    • Line 357: warning: ineffectual assignment to dlogfrmprob (ineffassign)
    • Line 376: warning: ineffectual assignment to dlogmixw (ineffassign)
    • govpr/param/cparam.go
    • Line 349: warning: ineffectual assignment to err (ineffassign)
    • Line 388: warning: ineffectual assignment to iSOff (ineffassign)
    • Line 389: warning: ineffectual assignment to iDOff (ineffassign)
    • Line 400: warning: ineffectual assignment to iSOff (ineffassign)
    • Line 401: warning: ineffectual assignment to iDOff (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words