1set/starlet

View on GitHub
lib/csv/csv.go

Summary

Maintainability
B
4 hrs
Test Coverage

Function readAll has 58 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func readAll(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
    var (
        source                       tps.StringOrBytes
        lazyQuotes, trimLeadingSpace bool
        skipRow, limitRow            int
Severity: Minor
Found in lib/csv/csv.go - About 1 hr to fix

    Function writeDict has 57 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func writeDict(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
        var (
            buf    = &bytes.Buffer{}
            data   starlark.Value
            header starlark.Iterable
    Severity: Minor
    Found in lib/csv/csv.go - About 1 hr to fix

      Function writeDict has 9 return statements (exceeds 4 allowed).
      Open

      func writeDict(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
          var (
              buf    = &bytes.Buffer{}
              data   starlark.Value
              header starlark.Iterable
      Severity: Major
      Found in lib/csv/csv.go - About 55 mins to fix

        Function writeAll has 7 return statements (exceeds 4 allowed).
        Open

        func writeAll(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
            var (
                buf   = &bytes.Buffer{}
                data  starlark.Value
                comma string
        Severity: Major
        Found in lib/csv/csv.go - About 45 mins to fix

          Function readAll has 6 return statements (exceeds 4 allowed).
          Open

          func readAll(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
              var (
                  source                       tps.StringOrBytes
                  lazyQuotes, trimLeadingSpace bool
                  skipRow, limitRow            int
          Severity: Major
          Found in lib/csv/csv.go - About 40 mins to fix

            There are no issues that match your filters.

            Category
            Status