Showing 7 of 21 total issues
Function exports
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
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.');
}
Function exports
has 155 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(database, dataset, overrides) {
var KeyFrag, directories, getDirectory;
directories = {};
getDirectory = function(dirPath, fnName, callback) {
var cb, directory;
Function exports
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(query, options) {
var Finder, keyFrag, serializer;
if (options == null) {
options = {};
}
File atomicrecord.js
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
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');
Function exports
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(fields) {
var AbstractRecord, aliases, dest, src;
if (fields instanceof Array) {
aliases = fields;
} else {
Function exports
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(indexName, index) {
var AtomicIndex;
return AtomicIndex = (function() {
var createTest, field, value, _ref;
Function findOne
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AtomicRecord.findOne = function(tr, query, callback) {
if (typeof query === 'function') {
callback = query;
query = tr;
tr = null;