tauraamui/kvs

View on GitHub

Showing 4 of 18 total issues

Function convertToEntries has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func convertToEntries(tableName string, ownerUUID UUID, rowID uint32, v reflect.Value, includeData bool) []Entry {
Severity: Minor
Found in entry.go - About 35 mins to fix

    Function convertToEntries has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func convertToEntries(tableName string, ownerUUID UUID, rowID uint32, v reflect.Value, includeData bool) []Entry {
    Severity: Minor
    Found in v2/entry.go - About 35 mins to fix

      Function convertFromBytes has 5 return statements (exceeds 4 allowed).
      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")
          }
      Severity: Major
      Found in v2/entry.go - About 35 mins to fix

        Function convertFromBytes has 5 return statements (exceeds 4 allowed).
        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")
            }
        Severity: Major
        Found in entry.go - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language