mantacode/safe-obj

View on GitHub

Showing 6 of 6 total issues

Function isEqual has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var isEqual = function isEqual(a, b) {
    if (a === b) {
      return true;
    }

Severity: Minor
Found in lib/index.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

                return false;
    Severity: Major
    Found in lib/index.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return true;
      Severity: Major
      Found in lib/index.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return false;
        Severity: Major
        Found in lib/index.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return true;
          Severity: Major
          Found in lib/index.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return isObject(obj[prop]) ? _safe.safe(obj[prop], props.join('.'), otherwise) : otherwise;
            Severity: Major
            Found in lib/index.js - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language