Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
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!
Golint is a linter for Go source code.
-
go-cassandra-native-protocol/primitive/reasonmap.go
- Line 29: warning: exported type FailureReason should have comment or be unexported (golint)
- Line 34: warning: exported function ReadReasonMap should have comment or be unexported (golint)
- Line 37: 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 52: warning: exported function WriteReasonMap should have comment or be unexported (golint)
- Line 66: warning: exported function LengthOfReasonMap should have comment or be unexported (golint)
- Line 71: 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)
-
go-cassandra-native-protocol/primitive/util.go
- Line 21: warning: exported function AllProtocolVersions should have comment or be unexported (golint)
- Line 32: warning: exported function AllOssProtocolVersions should have comment or be unexported (golint)
- Line 36: warning: exported function AllDseProtocolVersions should have comment or be unexported (golint)
- Line 40: warning: exported function AllBetaProtocolVersions should have comment or be unexported (golint)
- Line 44: warning: exported function AllNonBetaProtocolVersions should have comment or be unexported (golint)
- Line 48: warning: exported function AllProtocolVersionsGreaterThanOrEqualTo should have comment or be unexported (golint)
- Line 52: warning: exported function AllProtocolVersionsGreaterThan should have comment or be unexported (golint)
- Line 56: warning: exported function AllProtocolVersionsLesserThanOrEqualTo should have comment or be unexported (golint)
- Line 60: warning: exported function AllProtocolVersionsLesserThan should have comment or be unexported (golint)
- Line 81: warning: exported function CheckValidProtocolVersion should have comment or be unexported (golint)
- Line 88: warning: exported function IsValidProtocolVersion should have comment or be unexported (golint)
- Line 97: warning: exported function CheckValidOssProtocolVersion should have comment or be unexported (golint)
- Line 104: warning: exported function IsValidOssProtocolVersion should have comment or be unexported (golint)
- Line 113: warning: exported function CheckValidDseProtocolVersion should have comment or be unexported (golint)
- Line 120: warning: exported function IsValidDseProtocolVersion should have comment or be unexported (golint)
- Line 129: warning: exported function CheckValidOpCode should have comment or be unexported (golint)
- Line 136: warning: exported function IsValidOpCode should have comment or be unexported (golint)
- Line 161: warning: exported function CheckValidRequestOpCode should have comment or be unexported (golint)
- Line 168: warning: exported function IsValidRequestOpCode should have comment or be unexported (golint)
- Line 175: warning: exported function CheckValidResponseOpCode should have comment or be unexported (golint)
- Line 182: warning: exported function IsValidResponseOpCode should have comment or be unexported (golint)
- Line 189: warning: exported function CheckValidDseOpCode should have comment or be unexported (golint)
- Line 196: warning: exported function IsValidDseOpCode should have comment or be unexported (golint)
- Line 208: warning: exported function CheckValidConsistencyLevel should have comment or be unexported (golint)
- Line 215: warning: exported function IsValidConsistencyLevel should have comment or be unexported (golint)
- Line 234: warning: exported function CheckValidNonSerialConsistencyLevel should have comment or be unexported (golint)
- Line 241: warning: exported function IsValidNonSerialConsistencyLevel should have comment or be unexported (golint)
- Line 248: warning: exported function CheckValidSerialConsistencyLevel should have comment or be unexported (golint)
- Line 255: warning: exported function IsValidSerialConsistencyLevel should have comment or be unexported (golint)
- Line 262: warning: exported function CheckValidLocalConsistencyLevel should have comment or be unexported (golint)
- Line 269: warning: exported function IsValidLocalConsistencyLevel should have comment or be unexported (golint)
- Line 276: warning: exported function CheckValidNonLocalConsistencyLevel should have comment or be unexported (golint)
- Line 283: warning: exported function IsValidNonLocalConsistencyLevel should have comment or be unexported (golint)
- Line 290: warning: exported function CheckValidEventType should have comment or be unexported (golint)
- Line 297: warning: exported function IsValidEventType should have comment or be unexported (golint)
- Line 308: warning: exported function CheckValidWriteType should have comment or be unexported (golint)
- Line 315: warning: exported function IsValidWriteType should have comment or be unexported (golint)
- Line 330: warning: exported function CheckValidBatchType should have comment or be unexported (golint)
- Line 337: warning: exported function IsValidBatchType should have comment or be unexported (golint)
- Line 348: warning: exported function CheckValidDataTypeCode should have comment or be unexported (golint)
- Line 355: warning: exported function IsValidDataTypeCode should have comment or be unexported (golint)
- Line 393: warning: exported function CheckValidPrimitiveDataTypeCode should have comment or be unexported (golint)
- Line 400: warning: exported function IsValidPrimitiveDataTypeCode should have comment or be unexported (golint)
- Line 407: warning: exported function CheckValidSchemaChangeType should have comment or be unexported (golint)
- Line 414: warning: exported function IsValidSchemaChangeType should have comment or be unexported (golint)
- Line 425: warning: exported function CheckValidSchemaChangeTarget should have comment or be unexported (golint)
- Line 432: warning: exported function IsValidSchemaChangeTarget should have comment or be unexported (golint)
- Line 448: warning: exported function CheckValidStatusChangeType should have comment or be unexported (golint)
- Line 455: warning: exported function IsValidStatusChangeType should have comment or be unexported (golint)
- Line 465: warning: exported function CheckValidTopologyChangeType should have comment or be unexported (golint)
- Line 472: warning: exported function IsValidTopologyChangeType should have comment or be unexported (golint)
- Line 484: warning: exported function CheckValidResultType should have comment or be unexported (golint)
- Line 491: warning: exported function IsValidResultType should have comment or be unexported (golint)
- Line 504: warning: exported function CheckValidDseRevisionType should have comment or be unexported (golint)
- Line 511: warning: exported function IsValidDseRevisionType should have comment or be unexported (golint)
- Line 522: warning: exported function CheckValidFailureCode should have comment or be unexported (golint)
- Line 529: warning: exported function IsValidFailureCode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/values.go
- Line 23: warning: exported type ValueType should have comment or be unexported (golint)
- Line 26: warning: exported const ValueTypeRegular should have comment (or a comment on this block) or be unexported (golint)
- Line 31: warning: comment on exported type Value should be of the form "Value ..." (with optional leading article) (golint)
- Line 37: warning: exported function NewValue should have comment or be unexported (golint)
- Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 45: warning: exported function NewNullValue should have comment or be unexported (golint)
- Line 49: warning: exported function NewUnsetValue should have comment or be unexported (golint)
- Line 53: warning: exported method Value.Clone should have comment or be unexported (golint)
- Line 69: warning: exported function ReadValue should have comment or be unexported (golint)
- Line 92: warning: exported function WriteValue should have comment or be unexported (golint)
- Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 123: warning: exported function LengthOfValue should have comment or be unexported (golint)
- Line 141: warning: exported function ReadPositionalValues should have comment or be unexported (golint)
- Line 144: 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 149: 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 157: warning: exported function WritePositionalValues should have comment or be unexported (golint)
- Line 170: warning: exported function LengthOfPositionalValues should have comment or be unexported (golint)
- Line 185: warning: exported function ReadNamedValues should have comment or be unexported (golint)
- Line 188: 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 203: warning: exported function WriteNamedValues should have comment or be unexported (golint)
- Line 219: warning: exported function LengthOfNamedValues should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/bigint.go
- Line 26: warning: exported var Bigint should have comment or be unexported (golint)
- Line 30: warning: exported type BigintCodec should have comment or be unexported (golint)
- Line 32: warning: exported method BigintCodec.Encode should have comment or be unexported (golint)
- Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 96: warning: exported method BigintCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/uuid.go
- Line 22: warning: exported var Uuid should have comment or be unexported (golint)
- Line 24: warning: exported type UuidCodec should have comment or be unexported (golint)
- Line 26: warning: exported method UuidCodec.Encode should have comment or be unexported (golint)
- Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 53: warning: exported method UuidCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/auth_success.go
- Line 24: warning: exported type AuthSuccess should have comment or be unexported (golint)
- Line 28: warning: exported method AuthSuccess.IsResponse should have comment or be unexported (golint)
- Line 32: warning: exported method AuthSuccess.GetOpCode should have comment or be unexported (golint)
- Line 40: warning: comment on exported method AuthSuccess.Clone should be of the form "Clone ..." (golint)
- Line 52: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 61: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 69: 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)
-
go-cassandra-native-protocol/message/execute.go
- Line 25: warning: exported type Execute should have comment or be unexported (golint)
- Line 33: warning: exported method Execute.IsResponse should have comment or be unexported (golint)
- Line 37: warning: exported method Execute.GetOpCode should have comment or be unexported (golint)
- Line 41: warning: exported method Execute.Clone should have comment or be unexported (golint)
- Line 58: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 81: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 89: 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)
-
go-cassandra-native-protocol/message/startup.go
- Line 25: warning: exported const StartupOptionCqlVersion should have comment (or a comment on this block) or be unexported (golint)
- Line 34: warning: exported type Startup should have comment or be unexported (golint)
- Line 49: warning: exported function NewStartup should have comment or be unexported (golint)
- Line 57: warning: exported method Startup.GetCompression should have comment or be unexported (golint)
- Line 61: warning: exported method Startup.SetCompression should have comment or be unexported (golint)
- Line 65: warning: exported method Startup.GetClientId should have comment or be unexported (golint)
- Line 69: warning: exported method Startup.SetClientId should have comment or be unexported (golint)
- Line 73: warning: exported method Startup.GetApplicationName should have comment or be unexported (golint)
- Line 77: warning: exported method Startup.SetApplicationName should have comment or be unexported (golint)
- Line 81: warning: exported method Startup.GetApplicationVersion should have comment or be unexported (golint)
- Line 85: warning: exported method Startup.SetApplicationVersion should have comment or be unexported (golint)
- Line 89: warning: exported method Startup.GetDriverName should have comment or be unexported (golint)
- Line 93: warning: exported method Startup.SetDriverName should have comment or be unexported (golint)
- Line 97: warning: exported method Startup.GetDriverVersion should have comment or be unexported (golint)
- Line 101: warning: exported method Startup.SetDriverVersion should have comment or be unexported (golint)
- Line 105: warning: exported method Startup.IsResponse should have comment or be unexported (golint)
- Line 109: warning: exported method Startup.GetOpCode should have comment or be unexported (golint)
- Line 113: warning: exported method Startup.Clone should have comment or be unexported (golint)
- Line 128: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 136: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 144: 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)
-
go-cassandra-native-protocol/datatype/smallint.go
- Line 26: warning: exported var Smallint should have comment or be unexported (golint)
- Line 28: warning: exported type SmallintCodec should have comment or be unexported (golint)
- Line 30: warning: exported method SmallintCodec.Encode 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)
- Line 120: warning: exported method SmallintCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/tinyint.go
- Line 25: warning: exported var Tinyint should have comment or be unexported (golint)
- Line 27: warning: exported type TinyintCodec should have comment or be unexported (golint)
- Line 29: warning: exported method TinyintCodec.Encode should have comment or be unexported (golint)
- Line 32: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 123: warning: exported method TinyintCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/bytes_map.go
- Line 24: warning: exported function ReadBytesMap should have comment or be unexported (golint)
- Line 27: 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 42: warning: exported function WriteBytesMap should have comment or be unexported (golint)
- Line 57: warning: exported function LengthOfBytesMap should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/uuid.go
- Line 25: warning: exported const LengthOfUuid should have comment or be unexported (golint)
- Line 27: warning: exported type UUID should have comment or be unexported (golint)
- Line 29: warning: exported method UUID.Clone should have comment or be unexported (golint)
- Line 89: warning: exported function ReadUuid should have comment or be unexported (golint)
- Line 99: warning: exported function WriteUuid should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/batch.go
- Line 24: warning: comment on exported type Batch should be of the form "Batch ..." (with optional leading article) (golint)
- Line 51: warning: exported method Batch.IsResponse should have comment or be unexported (golint)
- Line 55: warning: exported method Batch.GetOpCode should have comment or be unexported (golint)
- Line 63: warning: comment on exported method Batch.Flags should be of the form "Flags ..." (golint)
- Line 83: warning: comment on exported method Batch.Clone should be of the form "Clone ..." (golint)
- Line 101: warning: exported type BatchChild should have comment or be unexported (golint)
- Line 110: warning: exported method BatchChild.Clone should have comment or be unexported (golint)
- Line 134: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 145: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 214: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 218: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 234: 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)
-
go-cassandra-native-protocol/frame/encode.go
- Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 36: 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 51: 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 65: 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)
-
go-cassandra-native-protocol/client/connection.go
- Line 78: 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 103: 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 174: 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)
-
go-cassandra-native-protocol/datatype/boolean.go
- Line 24: warning: exported var Boolean should have comment or be unexported (golint)
- Line 26: warning: exported type BooleanCodec should have comment or be unexported (golint)
- Line 28: warning: exported method BooleanCodec.Encode should have comment or be unexported (golint)
- Line 31: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 70: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 76: warning: exported method BooleanCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/double.go
- Line 25: warning: exported var Double should have comment or be unexported (golint)
- Line 29: warning: exported type DoubleCodec should have comment or be unexported (golint)
- Line 31: warning: exported method DoubleCodec.Encode should have comment or be unexported (golint)
- Line 34: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 53: warning: exported method DoubleCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/list.go
- Line 26: warning: exported type ListType should have comment or be unexported (golint)
- Line 39: warning: exported function NewListType should have comment or be unexported (golint)
- Line 89: warning: exported type ListCodec should have comment or be unexported (golint)
- Line 93: warning: exported function NewListCodec should have comment or be unexported (golint)
- Line 97: warning: exported method ListCodec.Encode should have comment or be unexported (golint)
- Line 133: warning: exported method ListCodec.Decode should have comment or be unexported (golint)
- Line 167: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 180: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
go-cassandra-native-protocol/datatype/timeuuid.go
- Line 22: warning: exported var Timeuuid should have comment or be unexported (golint)
- Line 24: warning: exported type TimeuuidCodec should have comment or be unexported (golint)
- Line 26: warning: exported method TimeuuidCodec.Encode should have comment or be unexported (golint)
- Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 53: warning: exported method TimeuuidCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/varchar.go
- Line 22: warning: exported var Varchar should have comment or be unexported (golint)
- Line 23: warning: exported var Text should have comment or be unexported (golint)
- Line 24: warning: exported var Ascii should have comment or be unexported (golint)
- Line 26: warning: exported type VarcharCodec should have comment or be unexported (golint)
- Line 27: warning: exported type AsciiCodec should have comment or be unexported (golint)
- Line 28: warning: exported type TextCodec should have comment or be unexported (golint)
- Line 30: warning: exported method VarcharCodec.Encode 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)
- Line 45: warning: exported method VarcharCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/compression/lz4/lz4.go
- Line 32: warning: exported method BodyCompressor.Algorithm should have comment or be unexported (golint)
- Line 36: warning: exported method BodyCompressor.Compress should have comment or be unexported (golint)
- Line 64: warning: exported method BodyCompressor.Decompress should have comment or be unexported (golint)
- Line 69: 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)
-
go-cassandra-native-protocol/primitive/inet_addr.go
- Line 26: warning: exported function ReadInetAddr should have comment or be unexported (golint)
- Line 29: 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 52: warning: exported function WriteInetAddr should have comment or be unexported (golint)
- Line 81: warning: exported function LengthOfInetAddr should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/result_metadata.go
- Line 24: warning: exported type ColumnMetadata should have comment or be unexported (golint)
- Line 40: warning: exported method VariablesMetadata.Flags should have comment or be unexported (golint)
- Line 66: warning: exported method RowsMetadata.Flags should have comment or be unexported (golint)
- Line 320: 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 384: warning: exported method ColumnMetadata.Clone should have comment or be unexported (golint)
- Line 398: warning: exported method VariablesMetadata.Clone should have comment or be unexported (golint)
- Line 398: warning: receiver name vm should be consistent with previous receiver name rm for VariablesMetadata (golint)
- Line 423: warning: exported method RowsMetadata.Clone should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/inet.go
- Line 23: warning: exported type InetCodec should have comment or be unexported (golint)
- Line 25: warning: exported method InetCodec.Encode should have comment or be unexported (golint)
- Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 43: warning: exported method InetCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/int.go
- Line 26: warning: exported var Int should have comment or be unexported (golint)
- Line 28: warning: exported type IntCodec should have comment or be unexported (golint)
- Line 30: warning: exported method IntCodec.Encode 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)
- Line 111: warning: exported method IntCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/auth_challenge.go
- Line 24: warning: exported type AuthChallenge should have comment or be unexported (golint)
- Line 28: warning: exported method AuthChallenge.IsResponse should have comment or be unexported (golint)
- Line 32: warning: exported method AuthChallenge.GetOpCode should have comment or be unexported (golint)
- Line 40: warning: comment on exported method AuthChallenge.Clone should be of the form "Clone ..." (golint)
- Line 52: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 60: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 68: 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)
-
go-cassandra-native-protocol/message/query.go
- Line 24: warning: exported type Query should have comment or be unexported (golint)
- Line 33: warning: exported method Query.IsResponse should have comment or be unexported (golint)
- Line 37: warning: exported method Query.GetOpCode should have comment or be unexported (golint)
- Line 41: warning: exported method Query.Clone should have comment or be unexported (golint)
- Line 60: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 76: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
-
go-cassandra-native-protocol/datatype/decimal.go
- Line 24: warning: exported type Dec should have comment or be unexported (golint)
- Line 29: warning: exported var Decimal should have comment or be unexported (golint)
- Line 31: warning: exported type DecimalCodec should have comment or be unexported (golint)
- Line 33: warning: exported method DecimalCodec.Encode should have comment or be unexported (golint)
- Line 47: warning: exported method DecimalCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/integers.go
- Line 24: warning: exported const LengthOfByte should have comment (or a comment on this block) or be unexported (golint)
- Line 32: warning: exported function ReadByte should have comment or be unexported (golint)
- Line 39: warning: exported function WriteByte should have comment or be unexported (golint)
- Line 48: warning: exported function ReadShort should have comment or be unexported (golint)
- Line 55: warning: exported function WriteShort should have comment or be unexported (golint)
- Line 64: warning: exported function ReadInt should have comment or be unexported (golint)
- Line 71: warning: exported function WriteInt should have comment or be unexported (golint)
- Line 80: warning: exported function ReadLong should have comment or be unexported (golint)
- Line 87: warning: exported function WriteLong should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/string_map.go
- Line 24: warning: exported function ReadStringMap should have comment or be unexported (golint)
- Line 27: 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 42: warning: exported function WriteStringMap should have comment or be unexported (golint)
- Line 57: warning: exported function LengthOfStringMap should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/set.go
- Line 23: warning: exported type SetType should have comment or be unexported (golint)
- Line 54: warning: exported function NewSetType should have comment or be unexported (golint)
- Line 86: warning: exported type SetCodec should have comment or be unexported (golint)
- Line 88: warning: exported function NewSetCodec should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/varint.go
- Line 23: warning: exported var Varint should have comment or be unexported (golint)
- Line 25: warning: exported type VarintCodec should have comment or be unexported (golint)
- Line 27: warning: exported method VarintCodec.Encode should have comment or be unexported (golint)
- Line 30: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 79: warning: exported method VarintCodec.Decode should have comment or be unexported (golint)
- Line 82: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
go-cassandra-native-protocol/message/prepare.go
- Line 24: warning: exported type Prepare should have comment or be unexported (golint)
- Line 30: warning: exported method Prepare.IsResponse should have comment or be unexported (golint)
- Line 34: warning: exported method Prepare.GetOpCode should have comment or be unexported (golint)
- Line 38: warning: exported method Prepare.Clone should have comment or be unexported (golint)
- Line 47: warning: exported method Prepare.Flags should have comment or be unexported (golint)
- Line 60: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 86: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
-
go-cassandra-native-protocol/datatype/float.go
- Line 25: warning: exported var Float should have comment or be unexported (golint)
- Line 29: warning: exported type FloatCodec should have comment or be unexported (golint)
- Line 31: warning: exported method FloatCodec.Encode should have comment or be unexported (golint)
- Line 34: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 54: warning: exported method FloatCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/authenticate.go
- Line 24: warning: exported type Authenticate should have comment or be unexported (golint)
- Line 28: warning: exported method Authenticate.IsResponse should have comment or be unexported (golint)
- Line 32: warning: exported method Authenticate.GetOpCode should have comment or be unexported (golint)
- Line 40: warning: comment on exported method Authenticate.Clone should be of the form "Clone ..." (golint)
- Line 51: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 62: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 70: 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)
-
go-cassandra-native-protocol/message/ready.go
- Line 24: warning: exported type Ready should have comment or be unexported (golint)
- Line 27: warning: exported method Ready.IsResponse should have comment or be unexported (golint)
- Line 31: warning: exported method Ready.GetOpCode should have comment or be unexported (golint)
- Line 35: warning: exported method Ready.Clone should have comment or be unexported (golint)
- Line 48: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 56: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
-
go-cassandra-native-protocol/message/result.go
- Line 24: warning: exported type Result should have comment or be unexported (golint)
- Line 31: warning: exported type VoidResult should have comment or be unexported (golint)
- Line 33: warning: exported method VoidResult.IsResponse should have comment or be unexported (golint)
- Line 37: warning: exported method VoidResult.GetOpCode should have comment or be unexported (golint)
- Line 41: warning: exported method VoidResult.GetResultType should have comment or be unexported (golint)
- Line 45: warning: exported method VoidResult.Clone should have comment or be unexported (golint)
- Line 55: warning: exported type SetKeyspaceResult should have comment or be unexported (golint)
- Line 59: warning: exported method SetKeyspaceResult.IsResponse should have comment or be unexported (golint)
- Line 63: warning: exported method SetKeyspaceResult.Clone should have comment or be unexported (golint)
- Line 69: warning: exported method SetKeyspaceResult.GetOpCode should have comment or be unexported (golint)
- Line 73: warning: exported method SetKeyspaceResult.GetResultType should have comment or be unexported (golint)
- Line 83: warning: comment on exported type SchemaChangeResult should be of the form "SchemaChangeResult ..." (with optional leading article) (golint)
- Line 100: warning: exported method SchemaChangeResult.IsResponse should have comment or be unexported (golint)
- Line 104: warning: exported method SchemaChangeResult.GetOpCode should have comment or be unexported (golint)
- Line 108: warning: exported method SchemaChangeResult.Clone should have comment or be unexported (golint)
- Line 118: warning: exported method SchemaChangeResult.GetResultType should have comment or be unexported (golint)
- Line 133: warning: exported type PreparedResult should have comment or be unexported (golint)
- Line 143: warning: exported method PreparedResult.IsResponse should have comment or be unexported (golint)
- Line 147: warning: exported method PreparedResult.Clone should have comment or be unexported (golint)
- Line 156: warning: exported method PreparedResult.GetOpCode should have comment or be unexported (golint)
- Line 160: warning: exported method PreparedResult.GetResultType should have comment or be unexported (golint)
- Line 170: warning: exported type Column should have comment or be unexported (golint)
- Line 172: warning: exported type Row should have comment or be unexported (golint)
- Line 174: warning: exported type RowSet should have comment or be unexported (golint)
- Line 176: warning: exported type RowsResult should have comment or be unexported (golint)
- Line 181: warning: exported method RowsResult.IsResponse should have comment or be unexported (golint)
- Line 185: warning: exported method RowsResult.GetOpCode should have comment or be unexported (golint)
- Line 189: warning: exported method RowsResult.Clone should have comment or be unexported (golint)
- Line 196: warning: exported method RowsResult.GetResultType should have comment or be unexported (golint)
- Line 399: 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 404: 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 414: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
go-cassandra-native-protocol/frame/frame.go
- Line 25: warning: comment on exported type Frame should be of the form "Frame ..." (with optional leading article) (golint)
- Line 31: warning: comment on exported type RawFrame should be of the form "RawFrame ..." (with optional leading article) (golint)
- Line 37: warning: exported type Header should have comment or be unexported (golint)
- Line 54: warning: exported type Body should have comment or be unexported (golint)
- Line 66: warning: comment on exported function NewFrame should be of the form "NewFrame ..." (golint)
- Line 87: warning: comment on exported method Frame.SetCustomPayload should be of the form "SetCustomPayload ..." (golint)
- Line 99: warning: comment on exported method Frame.SetWarnings should be of the form "SetWarnings ..." (golint)
- Line 111: warning: comment on exported method Frame.SetTracingId should be of the form "SetTracingId ..." (golint)
- Line 123: warning: comment on exported method Frame.RequestTracingId should be of the form "RequestTracingId ..." (golint)
- Line 133: warning: comment on exported method Frame.SetCompress should be of the form "SetCompress ..." (golint)
- Line 149: warning: comment on exported method Frame.Clone should be of the form "Clone ..." (golint)
- Line 157: warning: comment on exported method Header.Clone should be of the form "Clone ..." (golint)
- Line 163: warning: comment on exported method Body.Clone should be of the form "Clone ..." (golint)
- Line 212: 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 222: 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 227: warning: comment on exported method RawFrame.Clone should be of the form "Clone ..." (golint)
-
go-cassandra-native-protocol/client/server.go
- Line 33: warning: exported const DefaultAcceptTimeout should have comment (or a comment on this block) or be unexported (golint)
- Line 37: warning: exported const DefaultMaxConnections should have comment or be unexported (golint)
- Line 40: warning: exported const ServerStateNotStarted should have comment (or a comment on this block) or be unexported (golint)
- Line 45: warning: comment on exported type RequestHandlerContext should be of the form "RequestHandlerContext ..." (with optional leading article) (golint)
- Line 67: warning: comment on exported type RequestHandler should be of the form "RequestHandler ..." (with optional leading article) (golint)
- Line 106: warning: comment on exported function NewCqlServer should be of the form "NewCqlServer ..." (golint)
- Line 126: warning: exported method CqlServer.IsNotStarted should have comment or be unexported (golint)
- Line 130: warning: exported method CqlServer.IsRunning should have comment or be unexported (golint)
- Line 134: warning: exported method CqlServer.IsClosed should have comment or be unexported (golint)
- Line 142: warning: comment on exported method CqlServer.Start should be of the form "Start ..." (golint)
- Line 166: warning: exported method CqlServer.Close should have comment or be unexported (golint)
- Line 239: warning: comment on exported method CqlServer.Accept should be of the form "Accept ..." (golint)
- Line 248: 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 262: warning: comment on exported method CqlServer.AcceptAny should be of the form "AcceptAny ..." (golint)
- Line 282: warning: comment on exported method CqlServer.AllAcceptedClients should be of the form "AllAcceptedClients ..." (golint)
- Line 290: warning: comment on exported method CqlServer.Bind should be of the form "Bind ..." (golint)
- Line 292: warning: context.Context should be the first parameter of a function (golint)
- Line 307: warning: comment on exported method CqlServer.BindAndInit should be of the form "BindAndInit ..." (golint)
- Line 310: warning: context.Context should be the first parameter of a function (golint)
- Line 318: 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 341: warning: context.Context should be the first parameter of a function (golint)
- Line 388: warning: comment on exported method CqlServerConnection.LocalAddr should be of the form "LocalAddr ..." (golint)
- Line 393: warning: comment on exported method CqlServerConnection.RemoteAddr should be of the form "RemoteAddr ..." (golint)
- Line 398: warning: comment on exported method CqlServerConnection.Credentials should be of the form "Credentials ..." (golint)
- Line 516: warning: comment on exported method CqlServerConnection.Send should be of the form "Send ..." (golint)
- Line 531: warning: comment on exported method CqlServerConnection.Receive should be of the form "Receive ..." (golint)
- Line 541: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 550: warning: exported method CqlServerConnection.IsClosed should have comment or be unexported (golint)
- Line 558: warning: exported method CqlServerConnection.Close should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/inet.go
- Line 26: warning: exported type Inet should have comment or be unexported (golint)
- Line 35: warning: exported function ReadInet should have comment or be unexported (golint)
- Line 45: warning: exported function WriteInet should have comment or be unexported (golint)
- Line 57: warning: exported function LengthOfInet should have comment or be unexported (golint)
-
go-cassandra-native-protocol/frame/codec.go
- Line 24: warning: exported type Encoder should have comment or be unexported (golint)
- Line 30: warning: exported type RawEncoder should have comment or be unexported (golint)
- Line 45: warning: exported type Decoder should have comment or be unexported (golint)
- Line 51: warning: exported type RawDecoder should have comment or be unexported (golint)
- Line 74: warning: exported type RawConverter should have comment or be unexported (golint)
- Line 119: warning: exported function NewCodec should have comment or be unexported (golint)
- Line 123: warning: exported function NewRawCodec should have comment or be unexported (golint)
- Line 147: 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)
-
go-cassandra-native-protocol/primitive/nillables.go
- Line 17: warning: exported type NillableInt32 should have comment or be unexported (golint)
- Line 21: warning: exported type NillableInt64 should have comment or be unexported (golint)
- Line 25: warning: exported type NillableConsistencyLevel should have comment or be unexported (golint)
- Line 29: warning: exported method NillableInt32.Clone should have comment or be unexported (golint)
- Line 37: warning: exported method NillableInt64.Clone should have comment or be unexported (golint)
- Line 45: warning: exported method NillableConsistencyLevel.Clone should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/short_bytes.go
- Line 25: warning: exported function ReadShortBytes should have comment or be unexported (golint)
- Line 28: 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 39: warning: exported function WriteShortBytes should have comment or be unexported (golint)
- Line 51: warning: exported function LengthOfShortBytes should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/utils.go
- Line 19: warning: exported function CloneByteSlice should have comment or be unexported (golint)
- Line 29: warning: exported function CloneStringSlice should have comment or be unexported (golint)
- Line 39: warning: exported function CloneInet should have comment or be unexported (golint)
- Line 59: warning: exported function CloneOptions should have comment or be unexported (golint)
- Line 72: warning: exported function CloneSupportedOptions should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/dse_continuous_paging_options.go
- Line 38: warning: exported method ContinuousPagingOptions.Clone should have comment or be unexported (golint)
- Line 47: warning: exported function EncodeContinuousPagingOptions should have comment or be unexported (golint)
- Line 62: warning: exported function LengthOfContinuousPagingOptions should have comment or be unexported (golint)
- Line 74: warning: exported function DecodeContinuousPagingOptions should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/query_options.go
- Line 24: warning: comment on exported type QueryOptions should be of the form "QueryOptions ..." (with optional leading article) (golint)
- Line 79: warning: exported method QueryOptions.Clone should have comment or be unexported (golint)
- Line 108: warning: exported method QueryOptions.Flags should have comment or be unexported (golint)
- Line 147: warning: exported function EncodeQueryOptions should have comment or be unexported (golint)
- Line 219: warning: exported function LengthOfQueryOptions should have comment or be unexported (golint)
- Line 263: 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 270: warning: exported function DecodeQueryOptions should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/custom.go
- Line 23: warning: exported type CustomType should have comment or be unexported (golint)
- Line 36: warning: exported function NewCustomType should have comment or be unexported (golint)
- Line 70: 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)
-
go-cassandra-native-protocol/datatype/counter.go
- Line 26: warning: exported var Counter should have comment or be unexported (golint)
- Line 30: warning: exported type CounterCodec should have comment or be unexported (golint)
- Line 32: warning: exported method CounterCodec.Encode should have comment or be unexported (golint)
- Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 96: warning: exported method CounterCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/datatype.go
- Line 23: warning: exported type DataType should have comment or be unexported (golint)
- Line 28: warning: exported function WriteDataType should have comment or be unexported (golint)
- Line 54: warning: exported function LengthOfDataType should have comment or be unexported (golint)
- Line 77: warning: exported function ReadDataType should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/map.go
- Line 25: warning: exported type MapType should have comment or be unexported (golint)
- Line 63: warning: exported function NewMapType should have comment or be unexported (golint)
- Line 86: 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 91: 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 107: warning: exported type MapCodec should have comment or be unexported (golint)
- Line 112: warning: exported function NewMapCodec should have comment or be unexported (golint)
- Line 116: warning: exported method MapCodec.Encode should have comment or be unexported (golint)
- Line 164: warning: exported method MapCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/udt.go
- Line 23: warning: exported type UserDefinedType should have comment or be unexported (golint)
- Line 55: warning: exported function NewUserDefinedType should have comment or be unexported (golint)
- Line 126: 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)
-
go-cassandra-native-protocol/primitive/string_multimap.go
- Line 24: warning: exported function ReadStringMultiMap should have comment or be unexported (golint)
- Line 27: 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 42: warning: exported function WriteStringMultiMap should have comment or be unexported (golint)
- Line 57: warning: exported function LengthOfStringMultiMap should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/error.go
- Line 23: warning: exported type Error should have comment or be unexported (golint)
- Line 31: warning: exported type ServerError should have comment or be unexported (golint)
- Line 35: warning: exported method ServerError.IsResponse should have comment or be unexported (golint)
- Line 39: warning: exported method ServerError.GetOpCode should have comment or be unexported (golint)
- Line 43: warning: exported method ServerError.Clone should have comment or be unexported (golint)
- Line 48: warning: exported method ServerError.GetErrorCode should have comment or be unexported (golint)
- Line 52: warning: exported method ServerError.GetErrorMessage should have comment or be unexported (golint)
- Line 62: warning: exported type ProtocolError should have comment or be unexported (golint)
- Line 66: warning: exported method ProtocolError.IsResponse should have comment or be unexported (golint)
- Line 70: warning: exported method ProtocolError.GetOpCode should have comment or be unexported (golint)
- Line 74: warning: exported method ProtocolError.Clone should have comment or be unexported (golint)
- Line 79: warning: exported method ProtocolError.GetErrorCode should have comment or be unexported (golint)
- Line 83: warning: exported method ProtocolError.GetErrorMessage should have comment or be unexported (golint)
- Line 93: warning: exported type AuthenticationError should have comment or be unexported (golint)
- Line 97: warning: exported method AuthenticationError.IsResponse should have comment or be unexported (golint)
- Line 101: warning: exported method AuthenticationError.GetOpCode should have comment or be unexported (golint)
- Line 105: warning: exported method AuthenticationError.Clone should have comment or be unexported (golint)
- Line 110: warning: exported method AuthenticationError.GetErrorCode should have comment or be unexported (golint)
- Line 114: warning: exported method AuthenticationError.GetErrorMessage should have comment or be unexported (golint)
- Line 124: warning: exported type Overloaded should have comment or be unexported (golint)
- Line 128: warning: exported method Overloaded.IsResponse should have comment or be unexported (golint)
- Line 132: warning: exported method Overloaded.GetOpCode should have comment or be unexported (golint)
- Line 136: warning: exported method Overloaded.Clone should have comment or be unexported (golint)
- Line 141: warning: exported method Overloaded.GetErrorCode should have comment or be unexported (golint)
- Line 145: warning: exported method Overloaded.GetErrorMessage should have comment or be unexported (golint)
- Line 155: warning: exported type IsBootstrapping should have comment or be unexported (golint)
- Line 159: warning: exported method IsBootstrapping.IsResponse should have comment or be unexported (golint)
- Line 163: warning: exported method IsBootstrapping.GetOpCode should have comment or be unexported (golint)
- Line 167: warning: exported method IsBootstrapping.Clone should have comment or be unexported (golint)
- Line 172: warning: exported method IsBootstrapping.GetErrorCode should have comment or be unexported (golint)
- Line 176: warning: exported method IsBootstrapping.GetErrorMessage should have comment or be unexported (golint)
- Line 186: warning: exported type TruncateError should have comment or be unexported (golint)
- Line 190: warning: exported method TruncateError.IsResponse should have comment or be unexported (golint)
- Line 194: warning: exported method TruncateError.GetOpCode should have comment or be unexported (golint)
- Line 198: warning: exported method TruncateError.Clone should have comment or be unexported (golint)
- Line 203: warning: exported method TruncateError.GetErrorCode should have comment or be unexported (golint)
- Line 207: warning: exported method TruncateError.GetErrorMessage should have comment or be unexported (golint)
- Line 217: warning: exported type SyntaxError should have comment or be unexported (golint)
- Line 221: warning: exported method SyntaxError.IsResponse should have comment or be unexported (golint)
- Line 225: warning: exported method SyntaxError.GetOpCode should have comment or be unexported (golint)
- Line 229: warning: exported method SyntaxError.Clone should have comment or be unexported (golint)
- Line 234: warning: exported method SyntaxError.GetErrorCode should have comment or be unexported (golint)
- Line 238: warning: exported method SyntaxError.GetErrorMessage should have comment or be unexported (golint)
- Line 248: warning: exported type Unauthorized should have comment or be unexported (golint)
- Line 252: warning: exported method Unauthorized.IsResponse should have comment or be unexported (golint)
- Line 256: warning: exported method Unauthorized.GetOpCode should have comment or be unexported (golint)
- Line 260: warning: exported method Unauthorized.Clone should have comment or be unexported (golint)
- Line 265: warning: exported method Unauthorized.GetErrorCode should have comment or be unexported (golint)
- Line 269: warning: exported method Unauthorized.GetErrorMessage should have comment or be unexported (golint)
- Line 279: warning: exported type Invalid should have comment or be unexported (golint)
- Line 283: warning: exported method Invalid.IsResponse should have comment or be unexported (golint)
- Line 287: warning: exported method Invalid.GetOpCode should have comment or be unexported (golint)
- Line 291: warning: exported method Invalid.Clone should have comment or be unexported (golint)
- Line 296: warning: exported method Invalid.GetErrorCode should have comment or be unexported (golint)
- Line 300: warning: exported method Invalid.GetErrorMessage should have comment or be unexported (golint)
- Line 310: warning: exported type ConfigError should have comment or be unexported (golint)
- Line 314: warning: exported method ConfigError.IsResponse should have comment or be unexported (golint)
- Line 318: warning: exported method ConfigError.GetOpCode should have comment or be unexported (golint)
- Line 322: warning: exported method ConfigError.Clone should have comment or be unexported (golint)
- Line 327: warning: exported method ConfigError.GetErrorCode should have comment or be unexported (golint)
- Line 331: warning: exported method ConfigError.GetErrorMessage should have comment or be unexported (golint)
- Line 341: warning: exported type Unavailable should have comment or be unexported (golint)
- Line 352: warning: exported method Unavailable.IsResponse should have comment or be unexported (golint)
- Line 356: warning: exported method Unavailable.GetOpCode should have comment or be unexported (golint)
- Line 360: warning: exported method Unavailable.Clone should have comment or be unexported (golint)
- Line 365: warning: exported method Unavailable.GetErrorCode should have comment or be unexported (golint)
- Line 369: warning: exported method Unavailable.GetErrorMessage should have comment or be unexported (golint)
- Line 386: warning: exported type ReadTimeout should have comment or be unexported (golint)
- Line 401: warning: exported method ReadTimeout.IsResponse should have comment or be unexported (golint)
- Line 405: warning: exported method ReadTimeout.GetOpCode should have comment or be unexported (golint)
- Line 409: warning: exported method ReadTimeout.Clone should have comment or be unexported (golint)
- Line 414: warning: exported method ReadTimeout.GetErrorCode should have comment or be unexported (golint)
- Line 418: warning: exported method ReadTimeout.GetErrorMessage should have comment or be unexported (golint)
- Line 436: warning: exported type WriteTimeout should have comment or be unexported (golint)
- Line 448: warning: exported method WriteTimeout.IsResponse should have comment or be unexported (golint)
- Line 452: warning: exported method WriteTimeout.GetOpCode should have comment or be unexported (golint)
- Line 456: warning: exported method WriteTimeout.Clone should have comment or be unexported (golint)
- Line 461: warning: exported method WriteTimeout.GetErrorCode should have comment or be unexported (golint)
- Line 465: warning: exported method WriteTimeout.GetErrorMessage should have comment or be unexported (golint)
- Line 483: warning: exported type ReadFailure should have comment or be unexported (golint)
- Line 501: warning: exported method ReadFailure.IsResponse should have comment or be unexported (golint)
- Line 505: warning: exported method ReadFailure.GetOpCode should have comment or be unexported (golint)
- Line 509: warning: exported method ReadFailure.Clone should have comment or be unexported (golint)
- Line 522: warning: exported method ReadFailure.GetErrorCode should have comment or be unexported (golint)
- Line 526: warning: exported method ReadFailure.GetErrorMessage should have comment or be unexported (golint)
- Line 544: warning: exported type WriteFailure should have comment or be unexported (golint)
- Line 562: warning: exported method WriteFailure.IsResponse should have comment or be unexported (golint)
- Line 566: warning: exported method WriteFailure.GetOpCode should have comment or be unexported (golint)
- Line 570: warning: exported method WriteFailure.Clone should have comment or be unexported (golint)
- Line 582: warning: exported method WriteFailure.GetErrorCode should have comment or be unexported (golint)
- Line 586: warning: exported method WriteFailure.GetErrorMessage should have comment or be unexported (golint)
- Line 604: warning: exported type FunctionFailure should have comment or be unexported (golint)
- Line 611: warning: exported method FunctionFailure.IsResponse should have comment or be unexported (golint)
- Line 615: warning: exported method FunctionFailure.GetOpCode should have comment or be unexported (golint)
- Line 619: warning: exported method FunctionFailure.Clone should have comment or be unexported (golint)
- Line 636: warning: exported method FunctionFailure.GetErrorCode should have comment or be unexported (golint)
- Line 640: warning: exported method FunctionFailure.GetErrorMessage should have comment or be unexported (golint)
- Line 657: warning: exported type Unprepared should have comment or be unexported (golint)
- Line 662: warning: exported method Unprepared.IsResponse should have comment or be unexported (golint)
- Line 666: warning: exported method Unprepared.GetOpCode should have comment or be unexported (golint)
- Line 670: warning: exported method Unprepared.Clone should have comment or be unexported (golint)
- Line 677: warning: exported method Unprepared.GetErrorCode should have comment or be unexported (golint)
- Line 681: warning: exported method Unprepared.GetErrorMessage should have comment or be unexported (golint)
- Line 696: warning: exported type AlreadyExists should have comment or be unexported (golint)
- Line 702: warning: exported method AlreadyExists.IsResponse should have comment or be unexported (golint)
- Line 706: warning: exported method AlreadyExists.GetOpCode should have comment or be unexported (golint)
- Line 710: warning: exported method AlreadyExists.Clone should have comment or be unexported (golint)
- Line 715: warning: exported method AlreadyExists.GetErrorCode should have comment or be unexported (golint)
- Line 719: warning: exported method AlreadyExists.GetErrorMessage should have comment or be unexported (golint)
- Line 952: 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 971: 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)
-
go-cassandra-native-protocol/message/supported.go
- Line 24: warning: exported type Supported should have comment or be unexported (golint)
- Line 30: warning: exported method Supported.IsResponse should have comment or be unexported (golint)
- Line 34: warning: exported method Supported.GetOpCode should have comment or be unexported (golint)
- Line 38: warning: exported method Supported.Clone should have comment or be unexported (golint)
- Line 51: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 62: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 70: 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)
-
go-cassandra-native-protocol/client/handshake.go
- Line 25: warning: comment on exported function PerformHandshake should be of the form "PerformHandshake ..." (golint)
- Line 53: warning: comment on exported method CqlClientConnection.InitiateHandshake should be of the form "InitiateHandshake ..." (golint)
- Line 109: warning: comment on exported method CqlServerConnection.AcceptHandshake should be of the form "AcceptHandshake ..." (golint)
- Line 178: warning: comment on exported var HandshakeHandler should be of the form "HandshakeHandler ..." (golint)
-
go-cassandra-native-protocol/datatype/blob.go
- Line 22: warning: exported var Blob should have comment or be unexported (golint)
- Line 24: warning: exported type BlobCodec should have comment or be unexported (golint)
- Line 26: warning: exported method BlobCodec.Encode should have comment or be unexported (golint)
- Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 43: warning: exported method BlobCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/datatype/marshal.go
- Line 25: warning: exported type Codec should have comment or be unexported (golint)
- Line 30: warning: exported var DefaultDecodeOutputTypes should have comment or be unexported (golint)
- Line 81: warning: exported method NilDecoderCodec.Encode should have comment or be unexported (golint)
- Line 85: warning: exported method NilDecoderCodec.Decode should have comment or be unexported (golint)
-
go-cassandra-native-protocol/primitive/constants.go
- Line 19: warning: exported type ProtocolVersion should have comment or be unexported (golint)
- Line 23: warning: comment on exported const ProtocolVersion2 should be of the form "ProtocolVersion2 ..." (golint)
- Line 25: warning: exported const ProtocolVersion3 should have comment (or a comment on this block) or be unexported (golint)
- Line 29: warning: comment on exported const ProtocolVersionDse1 should be of the form "ProtocolVersionDse1 ..." (golint)
- Line 35: warning: exported method ProtocolVersion.IsOss should have comment or be unexported (golint)
- Line 47: warning: exported method ProtocolVersion.IsDse should have comment or be unexported (golint)
- Line 57: warning: exported method ProtocolVersion.IsBeta should have comment or be unexported (golint)
- Line 84: warning: exported method ProtocolVersion.Uses4BytesCollectionLength should have comment or be unexported (golint)
- Line 88: warning: exported type OpCode should have comment or be unexported (golint)
- Line 91: warning: comment on exported const OpCodeStartup should be of the form "OpCodeStartup ..." (golint)
- Line 93: warning: exported const OpCodeOptions should have comment (or a comment on this block) or be unexported (golint)
- Line 101: warning: comment on exported const OpCodeError should be of the form "OpCodeError ..." (golint)
- Line 112: warning: exported method OpCode.IsRequest should have comment or be unexported (golint)
- Line 129: warning: exported method OpCode.IsDse should have comment or be unexported (golint)
- Line 179: warning: exported type ResultType should have comment or be unexported (golint)
- Line 182: warning: exported const ResultTypeVoid should have comment (or a comment on this block) or be unexported (golint)
- Line 205: warning: exported type ErrorCode should have comment or be unexported (golint)
- Line 208: warning: comment on exported const ErrorCodeServerError should be of the form "ErrorCodeServerError ..." (golint)
- Line 210: warning: exported const ErrorCodeProtocolError should have comment (or a comment on this block) or be unexported (golint)
- Line 212: warning: comment on exported const ErrorCodeUnavailable should be of the form "ErrorCodeUnavailable ..." (golint)
- Line 222: warning: comment on exported const ErrorCodeSyntaxError should be of the form "ErrorCodeSyntaxError ..." (golint)
- Line 231: warning: exported method ErrorCode.IsFatalError should have comment or be unexported (golint)
- Line 242: warning: exported method ErrorCode.IsRequestExecutionError should have comment or be unexported (golint)
- Line 259: warning: exported method ErrorCode.IsQueryValidationError should have comment or be unexported (golint)
- Line 315: warning: comment on exported type ConsistencyLevel should be of the form "ConsistencyLevel ..." (with optional leading article) (golint)
- Line 319: warning: exported const ConsistencyLevelAny should have comment (or a comment on this block) or be unexported (golint)
- Line 332: warning: exported method ConsistencyLevel.IsSerial should have comment or be unexported (golint)
- Line 342: warning: exported method ConsistencyLevel.IsLocal should have comment or be unexported (golint)
- Line 380: warning: exported type WriteType should have comment or be unexported (golint)
- Line 383: warning: exported const WriteTypeSimple should have comment (or a comment on this block) or be unexported (golint)
- Line 392: warning: exported type DataTypeCode should have comment or be unexported (golint)
- Line 395: warning: exported const DataTypeCodeCustom should have comment (or a comment on this block) or be unexported (golint)
- Line 424: warning: exported method DataTypeCode.IsPrimitive should have comment or be unexported (golint)
- Line 513: warning: exported type EventType should have comment or be unexported (golint)
- Line 516: warning: exported const EventTypeTopologyChange should have comment (or a comment on this block) or be unexported (golint)
- Line 521: warning: exported type SchemaChangeType should have comment or be unexported (golint)
- Line 524: warning: exported const SchemaChangeTypeCreated should have comment (or a comment on this block) or be unexported (golint)
- Line 529: warning: exported type SchemaChangeTarget should have comment or be unexported (golint)
- Line 532: warning: exported const SchemaChangeTargetKeyspace should have comment (or a comment on this block) or be unexported (golint)
- Line 539: warning: exported type TopologyChangeType should have comment or be unexported (golint)
- Line 542: warning: exported const TopologyChangeTypeNewNode should have comment (or a comment on this block) or be unexported (golint)
- Line 547: warning: exported type StatusChangeType should have comment or be unexported (golint)
- Line 550: warning: exported const StatusChangeTypeUp should have comment (or a comment on this block) or be unexported (golint)
- Line 554: warning: exported type BatchType should have comment or be unexported (golint)
- Line 557: warning: exported const BatchTypeLogged should have comment (or a comment on this block) or be unexported (golint)
- Line 574: warning: exported type BatchChildType should have comment or be unexported (golint)
- Line 577: warning: exported const BatchChildTypeQueryString should have comment (or a comment on this block) or be unexported (golint)
- Line 591: warning: exported type HeaderFlag should have comment or be unexported (golint)
- Line 594: warning: exported const HeaderFlagCompressed should have comment (or a comment on this block) or be unexported (golint)
- Line 601: warning: exported method HeaderFlag.Add should have comment or be unexported (golint)
- Line 605: warning: exported method HeaderFlag.Remove should have comment or be unexported (golint)
- Line 609: warning: exported method HeaderFlag.Contains should have comment or be unexported (golint)
- Line 629: warning: comment on exported type QueryFlag should be of the form "QueryFlag ..." (with optional leading article) (golint)
- Line 633: warning: exported const QueryFlagValues should have comment (or a comment on this block) or be unexported (golint)
- Line 642: warning: comment on exported const QueryFlagDsePageSizeBytes should be of the form "QueryFlagDsePageSizeBytes ..." (golint)
- Line 647: warning: exported method QueryFlag.Add should have comment or be unexported (golint)
- Line 651: warning: exported method QueryFlag.Remove should have comment or be unexported (golint)
- Line 655: warning: exported method QueryFlag.Contains should have comment or be unexported (golint)
- Line 687: warning: exported type RowsFlag should have comment or be unexported (golint)
- Line 690: warning: exported const RowsFlagGlobalTablesSpec should have comment (or a comment on this block) or be unexported (golint)
- Line 694: warning: comment on exported const RowsFlagDseContinuousPaging should be of the form "RowsFlagDseContinuousPaging ..." (golint)
- Line 699: warning: exported method RowsFlag.Add should have comment or be unexported (golint)
- Line 703: warning: exported method RowsFlag.Remove should have comment or be unexported (golint)
- Line 707: warning: exported method RowsFlag.Contains should have comment or be unexported (golint)
- Line 730: warning: exported type VariablesFlag should have comment or be unexported (golint)
- Line 733: warning: exported const VariablesFlagGlobalTablesSpec should have comment (or a comment on this block) or be unexported (golint)
- Line 736: warning: exported method VariablesFlag.Add should have comment or be unexported (golint)
- Line 740: warning: exported method VariablesFlag.Remove should have comment or be unexported (golint)
- Line 744: warning: exported method VariablesFlag.Contains should have comment or be unexported (golint)
- Line 756: warning: exported type PrepareFlag should have comment or be unexported (golint)
- Line 759: warning: exported const PrepareFlagWithKeyspace should have comment (or a comment on this block) or be unexported (golint)
- Line 762: warning: exported method PrepareFlag.Add should have comment or be unexported (golint)
- Line 766: warning: exported method PrepareFlag.Remove should have comment or be unexported (golint)
- Line 770: warning: exported method PrepareFlag.Contains should have comment or be unexported (golint)
- Line 782: warning: exported type DseRevisionType should have comment or be unexported (golint)
- Line 785: warning: exported const DseRevisionTypeCancelContinuousPaging should have comment (or a comment on this block) or be unexported (golint)
- Line 799: warning: exported type FailureCode should have comment or be unexported (golint)
- Line 802: warning: exported const FailureCodeUnknown should have comment (or a comment on this block) or be unexported (golint)
-
go-cassandra-native-protocol/message/auth_response.go
- Line 24: warning: exported type AuthResponse should have comment or be unexported (golint)
- Line 28: warning: exported method AuthResponse.IsResponse should have comment or be unexported (golint)
- Line 32: warning: exported method AuthResponse.GetOpCode should have comment or be unexported (golint)
- Line 40: warning: comment on exported method AuthResponse.Clone should be of the form "Clone ..." (golint)
- Line 52: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 60: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 68: 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)
-
go-cassandra-native-protocol/client/auth.go
- Line 61: warning: exported method AuthCredentials.Copy should have comment or be unexported (golint)
- Line 65: warning: comment on exported type PlainTextAuthenticator should be of the form "PlainTextAuthenticator ..." (with optional leading article) (golint)
- Line 75: warning: exported method PlainTextAuthenticator.InitialResponse should have comment or be unexported (golint)
- Line 85: warning: exported method PlainTextAuthenticator.EvaluateChallenge should have comment or be unexported (golint)
-
go-cassandra-native-protocol/client/handlers.go
- Line 24: warning: comment on exported var HeartbeatHandler should be of the form "HeartbeatHandler ..." (golint)
- Line 34: warning: comment on exported function NewSetKeyspaceHandler should be of the form "NewSetKeyspaceHandler ..." (golint)
- Line 52: warning: comment on exported var RegisterHandler should be of the form "RegisterHandler ..." (golint)
- Line 61: warning: comment on exported function NewCompositeRequestHandler should be of the form "NewCompositeRequestHandler ..." (golint)
- Line 77: warning: comment on exported function NewDriverConnectionInitializationHandler should be of the form "NewDriverConnectionInitializationHandler ..." (golint)
-
go-cassandra-native-protocol/primitive/string.go
- Line 25: warning: exported function ReadString should have comment or be unexported (golint)
- Line 28: 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 39: warning: exported function WriteString should have comment or be unexported (golint)
- Line 51: warning: exported function LengthOfString should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/event.go
- Line 24: warning: exported type Event should have comment or be unexported (golint)
- Line 31: warning: comment on exported type SchemaChangeEvent should be of the form "SchemaChangeEvent ..." (with optional leading article) (golint)
- Line 47: warning: exported method SchemaChangeEvent.IsResponse should have comment or be unexported (golint)
- Line 51: warning: exported method SchemaChangeEvent.GetOpCode should have comment or be unexported (golint)
- Line 55: warning: exported method SchemaChangeEvent.Clone should have comment or be unexported (golint)
- Line 65: warning: exported method SchemaChangeEvent.GetEventType should have comment or be unexported (golint)
- Line 80: warning: exported type StatusChangeEvent should have comment or be unexported (golint)
- Line 85: warning: exported method StatusChangeEvent.IsResponse should have comment or be unexported (golint)
- Line 89: warning: exported method StatusChangeEvent.GetOpCode should have comment or be unexported (golint)
- Line 93: warning: exported method StatusChangeEvent.Clone should have comment or be unexported (golint)
- Line 100: warning: exported method StatusChangeEvent.GetEventType should have comment or be unexported (golint)
- Line 110: warning: exported type TopologyChangeEvent should have comment or be unexported (golint)
- Line 117: warning: exported method TopologyChangeEvent.IsResponse should have comment or be unexported (golint)
- Line 121: warning: exported method TopologyChangeEvent.GetOpCode should have comment or be unexported (golint)
- Line 125: warning: exported method TopologyChangeEvent.Clone should have comment or be unexported (golint)
- Line 132: warning: exported method TopologyChangeEvent.GetEventType should have comment or be unexported (golint)
-
go-cassandra-native-protocol/message/options.go
- Line 24: warning: exported type Options should have comment or be unexported (golint)
- Line 27: warning: exported method Options.IsResponse should have comment or be unexported (golint)
- Line 31: warning: exported method Options.GetOpCode should have comment or be unexported (golint)
- Line 35: warning: exported method Options.Clone should have comment or be unexported (golint)
- Line 48: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 56: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
-
go-cassandra-native-protocol/message/register.go
- Line 24: warning: exported type Register should have comment or be unexported (golint)
- Line 28: warning: exported method Register.IsResponse should have comment or be unexported (golint)
- Line 32: warning: exported method Register.GetOpCode should have comment or be unexported (golint)
- Line 36: warning: exported method Register.Clone should have comment or be unexported (golint)
- Line 59: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 75: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
- Line 83: 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)
-
go-cassandra-native-protocol/client/client.go
- Line 34: warning: exported const DefaultConnectTimeout should have comment (or a comment on this block) or be unexported (golint)
- Line 39: warning: exported const DefaultMaxInFlight should have comment (or a comment on this block) or be unexported (golint)
- Line 43: warning: exported const ManagedStreamId should have comment or be unexported (golint)
- Line 45: warning: comment on exported type EventHandler should be of the form "EventHandler ..." (with optional leading article) (golint)
- Line 73: warning: comment on exported function NewCqlClient should be of the form "NewCqlClient ..." (golint)
- Line 99: 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 126: 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 148: warning: context.Context should be the first parameter of a function (golint)
- Line 197: warning: comment on exported method CqlClientConnection.LocalAddr should be of the form "LocalAddr ..." (golint)
- Line 202: warning: comment on exported method CqlClientConnection.RemoteAddr should be of the form "RemoteAddr ..." (golint)
- Line 207: warning: comment on exported method CqlClientConnection.Credentials should be of the form "Credentials ..." (golint)
- Line 313: warning: comment on exported method CqlClientConnection.NewStartupRequest should be of the form "NewStartupRequest ..." (golint)
- Line 325: warning: comment on exported type InFlightRequest should be of the form "InFlightRequest ..." (with optional leading article) (golint)
- Line 349: warning: comment on exported method CqlClientConnection.Send should be of the form "Send ..." (golint)
- Line 366: 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 377: warning: comment on exported method CqlClientConnection.Receive should be of the form "Receive ..." (golint)
- Line 390: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 399: warning: comment on exported method CqlClientConnection.SendAndReceive should be of the form "SendAndReceive ..." (golint)
- Line 403: 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 408: warning: comment on exported type EventChannel should be of the form "EventChannel ..." (with optional leading article) (golint)
- Line 412: warning: comment on exported method CqlClientConnection.EventChannel should be of the form "EventChannel ..." (golint)
- Line 418: warning: comment on exported method CqlClientConnection.ReceiveEvent should be of the form "ReceiveEvent ..." (golint)
- Line 435: warning: exported method CqlClientConnection.IsClosed should have comment or be unexported (golint)
- Line 443: warning: exported method CqlClientConnection.Close should have comment or be unexported (golint)
-
go-cassandra-native-protocol/frame/decode.go
- Line 49: 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 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 85: 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)
-
go-cassandra-native-protocol/datatype/tuple.go
- Line 23: warning: exported type TupleType should have comment or be unexported (golint)
- Line 36: warning: exported function NewTupleType should have comment or be unexported (golint)
- Line 76: 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 81: 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 92: 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)
-
go-cassandra-native-protocol/message/message.go
- Line 22: warning: exported type Message should have comment or be unexported (golint)
- Line 28: warning: exported type Encoder should have comment or be unexported (golint)
- Line 33: warning: exported type Decoder should have comment or be unexported (golint)
- Line 37: warning: exported type Codec should have comment or be unexported (golint)
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.
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Checks whether your project has a LICENSE file.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!