frisb/atomicrecord

View on GitHub

Showing 7 of 21 total issues

Function exports has 257 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(options) {
  var AtomicIndex, AtomicRecord, Index, SerializerFactory, activeIndexes, database, dataset, db, fdb, fields, index, indexName, indexes, keyFrag, partition, primaryKey, remove, save, transactionalIndex, transactionalRemove, transactionalSave;
  if (!options) {
    throw new Error('No AtomicRecord options specified.');
  }
Severity: Major
Found in lib/atomicrecord.js - About 1 day to fix

    Function exports has 155 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(database, dataset, overrides) {
      var KeyFrag, directories, getDirectory;
      directories = {};
      getDirectory = function(dirPath, fnName, callback) {
        var cb, directory;
    Severity: Major
    Found in lib/keyfrag.js - About 6 hrs to fix

      Function exports has 79 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(query, options) {
        var Finder, keyFrag, serializer;
        if (options == null) {
          options = {};
        }
      Severity: Major
      Found in lib/finder.js - About 3 hrs to fix

        File atomicrecord.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        var AbstractRecord,
          __hasProp = {}.hasOwnProperty,
          __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
        
        AbstractRecord = require('./abstractrecord');
        Severity: Minor
        Found in lib/atomicrecord.js - About 2 hrs to fix

          Function exports has 49 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          module.exports = function(fields) {
            var AbstractRecord, aliases, dest, src;
            if (fields instanceof Array) {
              aliases = fields;
            } else {
          Severity: Minor
          Found in lib/abstractrecord.js - About 1 hr to fix

            Function exports has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            module.exports = function(indexName, index) {
              var AtomicIndex;
              return AtomicIndex = (function() {
                var createTest, field, value, _ref;
            
            
            Severity: Minor
            Found in lib/atomicindex.js - About 1 hr to fix

              Function findOne has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  AtomicRecord.findOne = function(tr, query, callback) {
                    if (typeof query === 'function') {
                      callback = query;
                      query = tr;
                      tr = null;
              Severity: Minor
              Found in lib/atomicrecord.js - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language