csballz/koala-puree

View on GitHub

Showing 50 of 580 total issues

Function _request has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

        function _request(sc, path, nsp, method, data, headers, resolve, reject) {
Severity: Major
Found in lib/service.js - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                                    if ( one ) {
                                        query.limit(1);
                                    }
    Severity: Major
    Found in lib/models.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                              if ( one ) {
                                                  return Promise.resolve(model._createDocument(m[0]));
                                              }
      Severity: Major
      Found in lib/models.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                                if ( one ) {
                                                    debug("creating just one?", m[0]);
                                                    return model._createDocument(m[0]);
                                                }
        Severity: Major
        Found in lib/models.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if ( fn ) {
                                                  p = p.then(fn);
                                              }
          Severity: Major
          Found in lib/models.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if ( id._id ) {
                                                id = id._id;
                                            }
            Severity: Major
            Found in lib/models.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                          if ( "link" !== rel.linkType ) {
                                              if ( rel.in ) {
                                                  reverseCond = "out";
                                              } else if ( rel.out ) {
                                                  reverseCond = "in";
              Severity: Major
              Found in lib/models.js - About 45 mins to fix

                Function genModel has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function genModel(file, remove, orientose, app, builders, parentSchema) {
                Severity: Minor
                Found in lib/models.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if ( fn ) {
                                                          p = p.then(fn);
                                                      }
                  Severity: Major
                  Found in lib/models.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                    if ( one ) {
                                                        query.limit(1);
                                                    }
                    Severity: Major
                    Found in lib/models.js - About 45 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language