Showing 9 of 17 total issues
Function convertFromBytes
has 21 return statements (exceeds 4 allowed). Open
Open
func convertFromBytes(data []byte, i interface{}) error {
if reflect.TypeOf(i).Kind() != reflect.Ptr {
return fmt.Errorf("destination must be a pointer")
}
Function convertFromBytes
has 69 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func convertFromBytes(data []byte, i interface{}) error {
if reflect.TypeOf(i).Kind() != reflect.Ptr {
return fmt.Errorf("destination must be a pointer")
}
Function file_service_proto_init
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func file_service_proto_init() {
if File_service_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
Method rpcserver.Fetch
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *rpcserver) Fetch(req *pb.FetchRequest, stream pb.BluePanda_FetchServer) error {
ttype := req.GetType()
uuidx := req.GetUuid()
columns := req.GetColumns()
Function convertToBytes
has 10 return statements (exceeds 4 allowed). Open
Open
func convertToBytes(i interface{}) ([]byte, error) {
switch v := i.(type) {
case []byte:
return v, nil
case string:
Method rpcserver.Fetch
has 8 return statements (exceeds 4 allowed). Open
Open
func (s *rpcserver) Fetch(req *pb.FetchRequest, stream pb.BluePanda_FetchServer) error {
ttype := req.GetType()
uuidx := req.GetUuid()
columns := req.GetColumns()
Function convertToEntries
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func convertToEntries(tableName string, ownerUUID kvs.UUID, rowID uint32, data map[string]any, includeData bool) []kvs.Entry {
Function convertToEntries
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func convertToEntries(tableName string, ownerUUID UUID, rowID uint32, v reflect.Value, includeData bool) []Entry {
Function convertFromBytes
has 5 return statements (exceeds 4 allowed). Open
Open
func convertFromBytes(data []byte, i interface{}) error {
// Check that the destination argument is a pointer.
if reflect.TypeOf(i).Kind() != reflect.Ptr {
return fmt.Errorf("destination must be a pointer")
}