Masquerade-Circus/valyrian.js

View on GitHub

Showing 5 of 31 total issues

Avoid deeply nested control flow statements.
Open

            for (const i in data) {
              formData.append(i, data[i]);
            }
Severity: Major
Found in lib/request/index.ts - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

              if (child) {
                str += child;
              }
    Severity: Major
    Found in lib/node/utils/tree-adapter.ts - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                    if (model[property] === vnode.props.value) {
                      model[property] = null;
                    } else {
                      model[property] = vnode.props.value;
                    }
      Severity: Major
      Found in lib/index.ts - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (idx === -1) {
                      model[property].push(val);
                    } else {
                      model[property].splice(idx, 1);
                    }
        Severity: Major
        Found in lib/index.ts - About 45 mins to fix

          Avoid too many return statements within this function.
          Open

              return { map: null, ...file };
          Severity: Major
          Found in lib/node/utils/inline.ts - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language