yoyo-project/yoyo

View on GitHub
internal/datatype/datatypes.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Datatype.String has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (dt Datatype) String() (s string) {
    switch dt {
    case Integer:
        s = integer
    case TinyInt:
Severity: Minor
Found in internal/datatype/datatypes.go - About 1 hr to fix

    Function FromString has 55 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func FromString(in string) (dt Datatype, err error) {
        switch strings.ToUpper(strings.Split(in, "(")[0]) {
        case integer, sint:
            dt = Integer
        case bigint:
    Severity: Minor
    Found in internal/datatype/datatypes.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status