betajs/betajs-data

View on GitHub

Showing 182 of 182 total issues

Function query has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

                        "query": function (member, uriData, post, get, ctx) {
Severity: Minor
Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

    Function _toData has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                 _toData: function (member, uriData, post, get, ctx) {
    Severity: Minor
    Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

      Function compileIndexedQuery has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              compileIndexedQuery: function(constrainedQuery, constrainedQueryCapabilities, constrainedQueryFunction, constrainedQueryContext, indices) {
      Severity: Minor
      Found in src/data/queries/query_engine.js - About 35 mins to fix

        Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                                "remove": function (member, uriData, post, get, ctx) {
        Severity: Minor
        Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

          Function update has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                                  "update": function (member, uriData, post, get, ctx) {
          Severity: Minor
          Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

            Function routeredRestInvoke has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    routeredRestInvoke: function (member, uriData, post, get, ctx) {}
            Severity: Minor
            Found in src/data/stores/invokers/invoker_store.js - About 35 mins to fix

              Function restInvoke has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      restInvoke: function (method, uri, post, get, ctx) {}
              Severity: Minor
              Found in src/data/stores/invokers/invoker_store.js - About 35 mins to fix

                Function get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                                        "get": function (member, uriData, post, get, ctx) {
                Severity: Minor
                Found in src/data/stores/invokers/rest_invokers.js - About 35 mins to fix

                  Function _undecodedUpdated has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                              _undecodedUpdated: function (id, updatedData, ctx, row, transaction_id) {},
                  Severity: Minor
                  Found in src/data/stores/delegators/contextualized_store.js - About 35 mins to fix

                    Function _remoteUpdate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                                _remoteUpdate: function (row, data, ctx, pre_data, transaction_id) {
                    Severity: Minor
                    Found in src/data/stores/partial/partial_store.js - About 35 mins to fix

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                          return this.partialStore.cachedStore.cacheUpdate(cachedId, merger, {
                                              ignoreLock: false,
                                              lockAttrs: false,
                                              silent: true,
                                              refreshMeta: true,
                      Severity: Minor
                      Found in src/data/stores/partial/partial_store_write_strategies.js and 1 other location - About 35 mins to fix
                      src/data/stores/partial/partial_store_write_strategies.js on lines 128..134

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 47.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                  _unwatchInsert : function(query) {
                                      inherited.unwatchInsert.call(this, query);
                                      this._store.remoteWatcher.unwatchInsert(query, this);
                                  }            
                      Severity: Minor
                      Found in src/data/stores/partial/partial_store.js and 1 other location - About 35 mins to fix
                      src/data/stores/partial/partial_store.js on lines 142..145

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 47.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                          this._log("Migrate " + migration.version + ": " + migration.title + " - " + migration.description + "...\n");
                      Severity: Minor
                      Found in src/data/databases/migrator.js and 1 other location - About 35 mins to fix
                      src/data/databases/migrator.js on lines 89..89

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 47.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                          var promise = this.partialStore.cachedStore.cacheUpdate(cachedId, data, {
                                              lockAttrs: true,
                                              ignoreLock: false,
                                              silent: true,
                                              refreshMeta: false,
                      Severity: Minor
                      Found in src/data/stores/partial/partial_store_write_strategies.js and 1 other location - About 35 mins to fix
                      src/data/stores/partial/partial_store_write_strategies.js on lines 54..60

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 47.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                          this._log("Rollback " + migration.version + ": " + migration.title + " - " + migration.description + "...\n");
                      Severity: Minor
                      Found in src/data/databases/migrator.js and 1 other location - About 35 mins to fix
                      src/data/databases/migrator.js on lines 59..59

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 47.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                  _watchInsert : function(query) {
                                      inherited.watchInsert.call(this, query);
                                      this._store.remoteWatcher.watchInsert(query, this);
                                  },
                      Severity: Minor
                      Found in src/data/stores/partial/partial_store.js and 1 other location - About 35 mins to fix
                      src/data/stores/partial/partial_store.js on lines 147..150

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 47.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                  _insertRow: function(row) {
                                      return this.databaseTable().insertRow(Objs.extend(this._aggregatesOf(row), row));
                                  },
                      Severity: Minor
                      Found in src/data/databases/aggregated_keys_database_wrapper.js and 1 other location - About 35 mins to fix
                      src/data/databases/aggregated_keys_database_wrapper.js on lines 97..99

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 46.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 2 locations. Consider refactoring.
                      Open

                                  _removeRow: function(row) {
                                      return this.databaseTable().removeRow(Objs.extend(this._aggregatesOf(row), row));
                                  },
                      Severity: Minor
                      Found in src/data/databases/aggregated_keys_database_wrapper.js and 1 other location - About 35 mins to fix
                      src/data/databases/aggregated_keys_database_wrapper.js on lines 93..95

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 46.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Avoid too many return statements within this function.
                      Open

                                      return !("skip" in qopts2) || (!qopts.limit || (qopts.limit >= qopts2.skip));
                      Severity: Major
                      Found in src/data/queries/constrained_queries.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return this.validate_query(value, capabilities);
                        Severity: Major
                        Found in src/data/queries/queries.js - About 30 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language