Preparing report...

Report for github.com/xelaj/mtproto

A+    Excellent!    Found 52 issues across 99 files

Tweet

gofmt90%

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!


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!


golint54%

Golint is a linter for Go source code.

    • mtproto/telegram/deeplinks/parameters.go
    • Line 12: warning: exported const ReservedSchema should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported function ReservedHosts should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type ResolveParameters should be of the form "ResolveParameters ..." (with optional leading article) (golint)
    • Line 60: warning: comment on exported type ResolvePassportParameters should be of the form "ResolvePassportParameters ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported type JoinParameters should be of the form "JoinParameters ..." (with optional leading article) (golint)
    • Line 92: warning: comment on exported type AddstickersParameters should be of the form "AddstickersParameters ..." (with optional leading article) (golint)
    • Line 97: warning: comment on exported type MsgParameters should be of the form "MsgParameters ..." (with optional leading article) (golint)
    • Line 104: warning: comment on exported type ConfirmPhoneParameters should be of the form "ConfirmPhoneParameters ..." (with optional leading article) (golint)
    • Line 110: warning: comment on exported type PassportParameters should be of the form "PassportParameters ..." (with optional leading article) (golint)
    • Line 127: warning: comment on exported type UserParameters should be of the form "UserParameters ..." (with optional leading article) (golint)
    • mtproto/examples/example_utils/main.go
    • Line 23: warning: exported function ReadWarningsToStdErr should have comment or be unexported (golint)
    • Line 31: warning: exported function PrepareAppStorageForExamples should have comment or be unexported (golint)
    • Line 62: warning: exported type Namespace should have comment or be unexported (golint)
    • Line 65: warning: exported const NamespaceUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported function GetAppStorage should have comment or be unexported (golint)
    • Line 91: warning: exported function GetUserNamespaceDir should have comment or be unexported (golint)
    • mtproto/errors.go
    • Line 1: warning: package comment should be of the form "Package mtproto ..." (golint)
    • Line 16: warning: exported type ErrResponseCode should have comment or be unexported (golint)
    • Line 23: warning: exported function RpcErrorToNative should have comment or be unexported (golint)
    • Line 67: warning: exported function TryExpandError should have comment or be unexported (golint)
    • Line 496: warning: exported type BadMsgError should have comment or be unexported (golint)
    • Line 501: warning: exported function BadMsgErrorFromNative should have comment or be unexported (golint)
    • Line 527: warning: exported type BadSystemMessageCode should have comment or be unexported (golint)
    • Line 530: warning: exported const ErrBadMsgUnknown should have comment (or a comment on this block) or be unexported (golint)
    • mtproto/mtproto_utils.go
    • Line 39: warning: exported method MTProto.SetAuthKey should have comment or be unexported (golint)
    • Line 44: warning: exported method MTProto.MakeRequest should have comment or be unexported (golint)
    • Line 48: warning: exported method MTProto.MakeRequestWithHintToDecoder should have comment or be unexported (golint)
    • Line 55: warning: exported method MTProto.AddCustomServerRequestHandler should have comment or be unexported (golint)
    • Line 65: warning: exported method MTProto.SaveSession should have comment or be unexported (golint)
    • Line 74: warning: exported method MTProto.LoadSession should have comment or be unexported (golint)
    • mtproto/internal/cmd/tlgen/gen/gen.go
    • Line 26: warning: exported type Generator should have comment or be unexported (golint)
    • Line 43: warning: exported function NewGenerator should have comment or be unexported (golint)
    • Line 57: warning: exported method Generator.Generate should have comment or be unexported (golint)
    • mtproto/telegram/methods_special.go
    • Line 20: warning: exported type InitConnectionParams should have comment or be unexported (golint)
    • Line 33: warning: exported method InitConnectionParams.CRC should have comment or be unexported (golint)
    • Line 37: warning: exported method InitConnectionParams.FlagIndex should have comment or be unexported (golint)
    • Line 41: warning: exported method Client.InitConnection should have comment or be unexported (golint)
    • Line 50: warning: exported type InvokeWithLayerParams should have comment or be unexported (golint)
    • Line 55: warning: exported method InvokeWithLayerParams.CRC should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.InvokeWithLayer should have comment or be unexported (golint)
    • Line 59: warning: receiver name m should be consistent with previous receiver name c for Client (golint)
    • Line 74: warning: exported type InvokeWithTakeoutParams should have comment or be unexported (golint)
    • Line 79: warning: exported method InvokeWithTakeoutParams.CRC should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.InvokeWithTakeout should have comment or be unexported (golint)
    • Line 83: warning: receiver name m should be consistent with previous receiver name c for Client (golint)
    • mtproto/internal/encoding/tl/errors.go
    • Line 10: warning: exported type ErrRegisteredObjectNotFound should have comment or be unexported (golint)
    • Line 19: warning: exported type ErrMustParseSlicesExplicitly should have comment or be unexported (golint)
    • Line 25: warning: exported type ErrorPartialWrite should have comment or be unexported (golint)
    • mtproto/internal/aes_ige/aes.go
    • Line 16: warning: exported type AesBlock should have comment or be unexported (golint)
    • Line 17: warning: exported type AesKV should have comment or be unexported (golint)
    • Line 18: warning: exported type AesIgeBlock should have comment or be unexported (golint)
    • Line 20: warning: exported function MessageKey should have comment or be unexported (golint)
    • Line 24: warning: exported function Encrypt should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function Decrypt should be of the form "Decrypt ..." (golint)
    • mtproto/internal/math/math.go
    • Line 6: warning: package comment should be of the form "Package math ..." (golint)
    • Line 120: warning: exported function MakeGAB should have comment or be unexported (golint)
    • Line 120: warning: don't use underscores in Go names; func parameter g_a should be gA (golint)
    • Line 120: warning: don't use underscores in Go names; func parameter dh_prime should be dhPrime (golint)
    • Line 120: warning: don't use underscores in Go names; func result g_b should be gB (golint)
    • Line 120: warning: don't use underscores in Go names; func result g_ab should be gAb (golint)
    • Line 130: warning: exported function Xor should have comment or be unexported (golint)
    • mtproto/internal/encoding/tl/object.go
    • Line 8: warning: exported type Object should have comment or be unexported (golint)
    • Line 12: warning: exported type FlagIndexGetter should have comment or be unexported (golint)
    • Line 16: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 20: warning: exported type Unmarshaler should have comment or be unexported (golint)
    • Line 32: warning: exported method PseudoTrue.CRC should have comment or be unexported (golint)
    • Line 39: warning: exported method PseudoFalse.CRC should have comment or be unexported (golint)
    • Line 43: warning: exported type PseudoNil should have comment or be unexported (golint)
    • Line 45: warning: exported method PseudoNil.CRC should have comment or be unexported (golint)
    • Line 60: warning: exported method WrappedSlice.CRC should have comment or be unexported (golint)
    • Line 68: warning: exported function UnwrapNativeTypes should have comment or be unexported (golint)
    • mtproto/internal/mtproto/objects/methods.go
    • Line 20: warning: exported type ReqPQParams should have comment or be unexported (golint)
    • Line 24: warning: exported method ReqPQParams.CRC should have comment or be unexported (golint)
    • Line 28: warning: exported function ReqPQ should have comment or be unexported (golint)
    • Line 42: warning: exported type ReqDHParamsParams should have comment or be unexported (golint)
    • Line 51: warning: exported method ReqDHParamsParams.CRC should have comment or be unexported (golint)
    • Line 55: warning: exported function ReqDHParams should have comment or be unexported (golint)
    • Line 79: warning: exported type SetClientDHParamsParams should have comment or be unexported (golint)
    • Line 85: warning: exported method SetClientDHParamsParams.CRC should have comment or be unexported (golint)
    • Line 89: warning: exported function SetClientDHParams should have comment or be unexported (golint)
    • Line 110: warning: exported type PingParams should have comment or be unexported (golint)
    • Line 114: warning: exported method PingParams.CRC should have comment or be unexported (golint)
    • Line 118: warning: exported function Ping should have comment or be unexported (golint)
    • mtproto/internal/transport/interfaces.go
    • Line 7: warning: exported type ConnConfig should have comment or be unexported (golint)
    • Line 8: warning: exported type Conn should have comment or be unexported (golint)
    • Line 10: warning: exported type ModeConfig should have comment or be unexported (golint)
    • Line 11: warning: exported type Mode should have comment or be unexported (golint)
    • mtproto/internal/transport/transport.go
    • Line 15: warning: exported type Transport should have comment or be unexported (golint)
    • Line 27: warning: exported function NewTransport should have comment or be unexported (golint)
    • Line 122: warning: exported type ErrCode should have comment or be unexported (golint)
    • mtproto/internal/encoding/tl/cursor_w.go
    • Line 15: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 22: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 59: warning: exported method Encoder.PutUint should have comment or be unexported (golint)
    • Line 71: warning: exported method Encoder.PutInt should have comment or be unexported (golint)
    • Line 75: warning: exported method Encoder.PutLong should have comment or be unexported (golint)
    • Line 81: warning: exported method Encoder.PutDouble should have comment or be unexported (golint)
    • Line 87: warning: exported method Encoder.PutMessage should have comment or be unexported (golint)
    • Line 95: warning: exported method Encoder.PutString should have comment or be unexported (golint)
    • Line 156: warning: exported method Encoder.PutRawBytes should have comment or be unexported (golint)
    • Line 160: warning: exported method Encoder.PutVector should have comment or be unexported (golint)
    • mtproto/internal/cmd/tlgen/tlparser/cursor.go
    • Line 8: warning: exported type Cursor should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function NewCursor should be of the form "NewCursor ..." (golint)
    • Line 33: warning: exported method Cursor.Unread should have comment or be unexported (golint)
    • Line 40: warning: exported method Cursor.Skip should have comment or be unexported (golint)
    • Line 47: warning: exported method Cursor.SkipSpaces should have comment or be unexported (golint)
    • Line 55: warning: exported method Cursor.ReadAt should have comment or be unexported (golint)
    • Line 70: warning: exported method Cursor.ReadSymbol should have comment or be unexported (golint)
    • Line 76: warning: exported method Cursor.ReadDigits should have comment or be unexported (golint)
    • Line 88: warning: exported method Cursor.IsNext should have comment or be unexported (golint)
    • mtproto/telegram/unnoficial.go
    • Line 26: warning: exported method Client.GetChannelInfoByInviteLink should have comment or be unexported (golint)
    • Line 54: warning: exported method Client.GetChatInfoByHashLink should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.GetPossibleAllUsersOfGroup should have comment or be unexported (golint)
    • Line 142: warning: exported method Client.GetPossibleAllParticipantsOfGroup should have comment or be unexported (golint)
    • Line 323: warning: comment on exported method Client.AllUsersInChat should be of the form "AllUsersInChat ..." (golint)
    • Line 387: warning: comment on exported method Client.AllUsersInChannel should be of the form "AllUsersInChannel ..." (golint)
    • Line 417: warning: exported method Client.PhoneGetCallConfigFormatted should have comment or be unexported (golint)
    • mtproto/internal/aes_ige/ige_cipher.go
    • Line 17: warning: exported type Cipher should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function NewCipher should be of the form "NewCipher ..." (golint)
    • Line 162: warning: don't use underscores in Go names; func parameter msg_key should be msgKey (golint)
    • Line 162: warning: don't use underscores in Go names; func parameter auth_key should be authKey (golint)
    • Line 174: warning: don't use underscores in Go names; var aes_key should be aesKey (golint)
    • Line 175: warning: don't use underscores in Go names; var aes_iv should be aesIv (golint)
    • Line 176: warning: don't use underscores in Go names; var t_a should be tA (golint)
    • Line 177: warning: don't use underscores in Go names; var t_b should be tB (golint)
    • Line 178: warning: don't use underscores in Go names; var t_c should be tC (golint)
    • Line 179: warning: don't use underscores in Go names; var t_d should be tD (golint)
    • Line 194: warning: don't use underscores in Go names; var sha1_a should be sha1A (golint)
    • Line 195: warning: don't use underscores in Go names; var sha1_b should be sha1B (golint)
    • Line 196: warning: don't use underscores in Go names; var sha1_c should be sha1C (golint)
    • Line 197: warning: don't use underscores in Go names; var sha1_d should be sha1D (golint)
    • mtproto/telegram/internal/srp/2fa.go
    • Line 106: warning: comment on exported type ModPow should be of the form "ModPow ..." (with optional leading article) (golint)
    • Line 114: warning: comment on exported type SrpAnswer should be of the form "SrpAnswer ..." (with optional leading article) (golint)
    • mtproto/internal/keys/keys.go
    • Line 39: warning: exported function ReadFromFile should have comment or be unexported (golint)
    • Line 84: warning: exported function SaveRsaKey should have comment or be unexported (golint)
    • mtproto/utils.go
    • Line 32: warning: exported function MessageRequireToAck should have comment or be unexported (golint)
    • Line 41: warning: exported function CloseOnCancel should have comment or be unexported (golint)
    • mtproto/internal/utils/utils.go
    • Line 40: warning: exported function AuthKeyHash should have comment or be unexported (golint)
    • Line 44: warning: exported function PacketLengthMTProtoCompatible should have comment or be unexported (golint)
    • Line 57: warning: exported var ErrPacketSizeIsBigger should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function GetPacketLengthMTProtoCompatible should be of the form "GetPacketLengthMTProtoCompatible ..." (golint)
    • Line 82: warning: exported function GenerateSessionID should have comment or be unexported (golint)
    • Line 87: warning: exported function FullStack should have comment or be unexported (golint)
    • Line 98: warning: exported function Sha1Byte should have comment or be unexported (golint)
    • mtproto/internal/encoding/tl/cursor_r.go
    • Line 80: warning: exported method Decoder.PopLong should have comment or be unexported (golint)
    • Line 90: warning: exported method Decoder.PopDouble should have comment or be unexported (golint)
    • Line 100: warning: exported method Decoder.PopUint should have comment or be unexported (golint)
    • Line 110: warning: exported method Decoder.PopRawBytes should have comment or be unexported (golint)
    • Line 120: warning: exported method Decoder.PopBool should have comment or be unexported (golint)
    • Line 137: warning: exported method Decoder.PopNull should have comment or be unexported (golint)
    • Line 149: warning: exported method Decoder.PopCRC should have comment or be unexported (golint)
    • Line 153: warning: exported method Decoder.PopInt should have comment or be unexported (golint)
    • Line 157: warning: exported method Decoder.GetRestOfMessage should have comment or be unexported (golint)
    • Line 161: warning: exported method Decoder.DumpWithoutRead should have comment or be unexported (golint)
    • Line 171: warning: exported method Decoder.PopVector should have comment or be unexported (golint)
    • Line 218: warning: exported method Decoder.PopMessage should have comment or be unexported (golint)
    • mtproto/internal/encoding/tl/register.go
    • Line 6: warning: package comment should be of the form "Package tl ..." (golint)
    • Line 32: warning: exported function RegisterObjects should have comment or be unexported (golint)
    • Line 42: warning: exported function RegisterEnums should have comment or be unexported (golint)
    • mtproto/internal/mtproto/objects/types.go
    • Line 26: warning: exported method Null.CRC should have comment or be unexported (golint)
    • Line 30: warning: exported type ResPQ should have comment or be unexported (golint)
    • Line 37: warning: exported method ResPQ.CRC should have comment or be unexported (golint)
    • Line 41: warning: exported type PQInnerData should have comment or be unexported (golint)
    • Line 50: warning: exported method PQInnerData.CRC should have comment or be unexported (golint)
    • Line 54: warning: exported type ServerDHParams should have comment or be unexported (golint)
    • Line 59: warning: exported type ServerDHParamsFail should have comment or be unexported (golint)
    • Line 65: warning: exported method ServerDHParamsFail.ImplementsServerDHParams should have comment or be unexported (golint)
    • Line 67: warning: exported method ServerDHParamsFail.CRC should have comment or be unexported (golint)
    • Line 71: warning: exported type ServerDHParamsOk should have comment or be unexported (golint)
    • Line 77: warning: exported method ServerDHParamsOk.ImplementsServerDHParams should have comment or be unexported (golint)
    • Line 79: warning: exported method ServerDHParamsOk.CRC should have comment or be unexported (golint)
    • Line 83: warning: exported type ServerDHInnerData should have comment or be unexported (golint)
    • Line 92: warning: exported method ServerDHInnerData.CRC should have comment or be unexported (golint)
    • Line 96: warning: exported type ClientDHInnerData should have comment or be unexported (golint)
    • Line 103: warning: exported method ClientDHInnerData.CRC should have comment or be unexported (golint)
    • Line 107: warning: exported type DHGenOk should have comment or be unexported (golint)
    • Line 113: warning: exported method DHGenOk.ImplementsSetClientDHParamsAnswer should have comment or be unexported (golint)
    • Line 115: warning: exported method DHGenOk.CRC should have comment or be unexported (golint)
    • Line 119: warning: exported type SetClientDHParamsAnswer should have comment or be unexported (golint)
    • Line 124: warning: exported type DHGenRetry should have comment or be unexported (golint)
    • Line 130: warning: exported method DHGenRetry.ImplementsSetClientDHParamsAnswer should have comment or be unexported (golint)
    • Line 132: warning: exported method DHGenRetry.CRC should have comment or be unexported (golint)
    • Line 136: warning: exported type DHGenFail should have comment or be unexported (golint)
    • Line 142: warning: exported method DHGenFail.ImplementsSetClientDHParamsAnswer should have comment or be unexported (golint)
    • Line 144: warning: exported method DHGenFail.CRC should have comment or be unexported (golint)
    • Line 148: warning: exported type RpcResult should have comment or be unexported (golint)
    • Line 153: warning: exported method RpcResult.CRC should have comment or be unexported (golint)
    • Line 181: warning: exported type RpcError should have comment or be unexported (golint)
    • Line 186: warning: exported method RpcError.CRC should have comment or be unexported (golint)
    • Line 190: warning: exported type RpcDropAnswer should have comment or be unexported (golint)
    • Line 195: warning: exported type RpcAnswerUnknown should have comment or be unexported (golint)
    • Line 197: warning: exported method RpcAnswerUnknown.ImplementsRpcDropAnswer should have comment or be unexported (golint)
    • Line 199: warning: exported method RpcAnswerUnknown.CRC should have comment or be unexported (golint)
    • Line 203: warning: exported type RpcAnswerDroppedRunning should have comment or be unexported (golint)
    • Line 205: warning: exported method RpcAnswerDroppedRunning.ImplementsRpcDropAnswer should have comment or be unexported (golint)
    • Line 207: warning: exported method RpcAnswerDroppedRunning.CRC should have comment or be unexported (golint)
    • Line 211: warning: exported type RpcAnswerDropped should have comment or be unexported (golint)
    • Line 217: warning: exported method RpcAnswerDropped.ImplementsRpcDropAnswer should have comment or be unexported (golint)
    • Line 219: warning: exported method RpcAnswerDropped.CRC should have comment or be unexported (golint)
    • Line 223: warning: exported type FutureSalt should have comment or be unexported (golint)
    • Line 229: warning: exported method FutureSalt.CRC should have comment or be unexported (golint)
    • Line 233: warning: exported type FutureSalts should have comment or be unexported (golint)
    • Line 239: warning: exported method FutureSalts.CRC should have comment or be unexported (golint)
    • Line 243: warning: exported type Pong should have comment or be unexported (golint)
    • Line 248: warning: exported method Pong.CRC should have comment or be unexported (golint)
    • Line 255: warning: exported type NewSessionCreated should have comment or be unexported (golint)
    • Line 261: warning: exported method NewSessionCreated.CRC should have comment or be unexported (golint)
    • Line 265: warning: comment on exported type MessageContainer should be of the form "MessageContainer ..." (with optional leading article) (golint)
    • Line 271: warning: exported method MessageContainer.CRC should have comment or be unexported (golint)
    • Line 275: warning: exported method MessageContainer.MarshalTL should have comment or be unexported (golint)
    • Line 292: warning: exported method MessageContainer.UnmarshalTL should have comment or be unexported (golint)
    • Line 308: warning: exported type Message should have comment or be unexported (golint)
    • Line 315: warning: exported type MsgCopy should have comment or be unexported (golint)
    • Line 319: warning: exported method MsgCopy.CRC should have comment or be unexported (golint)
    • Line 323: warning: exported type GzipPacked should have comment or be unexported (golint)
    • Line 327: warning: exported method GzipPacked.CRC should have comment or be unexported (golint)
    • Line 331: warning: exported method GzipPacked.MarshalTL should have comment or be unexported (golint)
    • Line 335: warning: exported method GzipPacked.UnmarshalTL should have comment or be unexported (golint)
    • Line 387: warning: exported type MsgsAck should have comment or be unexported (golint)
    • Line 391: warning: exported method MsgsAck.CRC should have comment or be unexported (golint)
    • Line 395: warning: exported type BadMsgNotification should have comment or be unexported (golint)
    • Line 401: warning: exported method BadMsgNotification.ImplementsBadMsgNotification should have comment or be unexported (golint)
    • Line 403: warning: exported method BadMsgNotification.CRC should have comment or be unexported (golint)
    • Line 407: warning: exported type BadServerSalt should have comment or be unexported (golint)
    • Line 414: warning: exported method BadServerSalt.ImplementsBadMsgNotification should have comment or be unexported (golint)
    • Line 416: warning: exported method BadServerSalt.CRC should have comment or be unexported (golint)
    • Line 422: warning: exported type MsgResendReq should have comment or be unexported (golint)
    • Line 426: warning: exported method MsgResendReq.CRC should have comment or be unexported (golint)
    • Line 430: warning: exported type MsgsStateReq should have comment or be unexported (golint)
    • Line 434: warning: exported method MsgsStateReq.CRC should have comment or be unexported (golint)
    • Line 438: warning: exported type MsgsStateInfo should have comment or be unexported (golint)
    • Line 443: warning: exported method MsgsStateInfo.CRC should have comment or be unexported (golint)
    • Line 447: warning: exported type MsgsAllInfo should have comment or be unexported (golint)
    • Line 452: warning: exported method MsgsAllInfo.CRC should have comment or be unexported (golint)
    • Line 456: warning: exported type MsgsDetailedInfo should have comment or be unexported (golint)
    • Line 463: warning: exported method MsgsDetailedInfo.CRC should have comment or be unexported (golint)
    • Line 467: warning: exported type MsgsNewDetailedInfo should have comment or be unexported (golint)
    • Line 473: warning: exported method MsgsNewDetailedInfo.CRC should have comment or be unexported (golint)
    • mtproto/internal/mtproto/messages/messages.go
    • Line 31: warning: exported type Encrypted should have comment or be unexported (golint)
    • Line 42: warning: exported method Encrypted.Serialize should have comment or be unexported (golint)
    • Line 59: warning: exported function DeserializeEncrypted should have comment or be unexported (golint)
    • Line 108: warning: exported method Encrypted.GetMsg should have comment or be unexported (golint)
    • Line 112: warning: exported method Encrypted.GetMsgID should have comment or be unexported (golint)
    • Line 116: warning: exported method Encrypted.GetSeqNo should have comment or be unexported (golint)
    • Line 120: warning: exported type Unencrypted should have comment or be unexported (golint)
    • Line 125: warning: exported method Unencrypted.Serialize should have comment or be unexported (golint)
    • Line 136: warning: exported function DeserializeUnencrypted should have comment or be unexported (golint)
    • Line 163: warning: exported method Unencrypted.GetMsg should have comment or be unexported (golint)
    • Line 167: warning: exported method Unencrypted.GetMsgID should have comment or be unexported (golint)
    • Line 171: warning: exported method Unencrypted.GetSeqNo should have comment or be unexported (golint)
    • mtproto/internal/session/session.go
    • Line 29: warning: exported type Session should have comment or be unexported (golint)
    • Line 36: warning: exported function LoadSession should have comment or be unexported (golint)
    • Line 72: warning: exported function SaveSession should have comment or be unexported (golint)
    • mtproto/mtproto.go
    • Line 28: warning: exported type MTProto should have comment or be unexported (golint)
    • Line 83: warning: exported type Config should have comment or be unexported (golint)
    • Line 89: warning: exported function NewMTProto should have comment or be unexported (golint)
    • Line 117: warning: exported method MTProto.SetDCList should have comment or be unexported (golint)
    • Line 126: warning: exported method MTProto.CreateConnection should have comment or be unexported (golint)
    • Line 210: warning: exported method MTProto.Reconnect should have comment or be unexported (golint)
    • mtproto/internal/utils/sync_stuff.go
    • Line 15: warning: exported type SyncSetInt should have comment or be unexported (golint)
    • Line 20: warning: exported function NewSyncSetInt should have comment or be unexported (golint)
    • Line 24: warning: exported method SyncSetInt.Has should have comment or be unexported (golint)
    • Line 31: warning: exported method SyncSetInt.Add should have comment or be unexported (golint)
    • Line 39: warning: exported method SyncSetInt.Delete should have comment or be unexported (golint)
    • Line 47: warning: exported method SyncSetInt.Reset should have comment or be unexported (golint)
    • Line 53: warning: exported type SyncIntObjectChan should have comment or be unexported (golint)
    • Line 58: warning: exported function NewSyncIntObjectChan should have comment or be unexported (golint)
    • Line 62: warning: exported method SyncIntObjectChan.Has should have comment or be unexported (golint)
    • Line 69: warning: exported method SyncIntObjectChan.Get should have comment or be unexported (golint)
    • Line 76: warning: exported method SyncIntObjectChan.Add should have comment or be unexported (golint)
    • Line 82: warning: exported method SyncIntObjectChan.Keys should have comment or be unexported (golint)
    • Line 92: warning: exported method SyncIntObjectChan.Delete should have comment or be unexported (golint)
    • Line 100: warning: exported type SyncIntReflectTypes should have comment or be unexported (golint)
    • Line 105: warning: exported function NewSyncIntReflectTypes should have comment or be unexported (golint)
    • Line 109: warning: exported method SyncIntReflectTypes.Has should have comment or be unexported (golint)
    • Line 116: warning: exported method SyncIntReflectTypes.Get should have comment or be unexported (golint)
    • Line 123: warning: exported method SyncIntReflectTypes.Add should have comment or be unexported (golint)
    • Line 129: warning: exported method SyncIntReflectTypes.Keys should have comment or be unexported (golint)
    • Line 139: warning: exported method SyncIntReflectTypes.Delete should have comment or be unexported (golint)
    • mtproto/internal/cmd/tlgen/tlparser/schema.go
    • Line 3: warning: exported type Schema should have comment or be unexported (golint)
    • Line 9: warning: exported type Object should have comment or be unexported (golint)
    • Line 17: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 26: warning: exported type Method should have comment or be unexported (golint)
    • Line 34: warning: exported type MethodResponse should have comment or be unexported (golint)
    • mtproto/telegram/common.go
    • Line 20: warning: exported type Client should have comment or be unexported (golint)
    • Line 26: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 42: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 128: warning: exported method Client.IsSessionRegistred should have comment or be unexported (golint)
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • mtproto/internal/encoding/tl/const.go
    • Line 9: warning: exported const WordLen should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported const FuckingMagicNumber should be of the form "FuckingMagicNumber ..." (golint)
    • Line 18: warning: comment on exported const CrcVector should be of the form "CrcVector ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)