Permalink
Browse files

run `fix-lint` across project

  • Loading branch information...
1 parent cefea6c commit 9890109c12b3ba80e9e7824fa988857f7788ee2c @ChristianMurphy ChristianMurphy committed Feb 1, 2016
Showing with 6,198 additions and 6,198 deletions.
  1. +8 −8 benchmarks/benchjs/casting.js
  2. +13 −13 benchmarks/benchjs/delete.js
  3. +14 −14 benchmarks/benchjs/insert.js
  4. +42 −42 benchmarks/benchjs/multiop.js
  5. +31 −31 benchmarks/benchjs/population.js
  6. +31 −31 benchmarks/benchjs/read.js
  7. +35 −35 benchmarks/benchjs/update.js
  8. +1 −1 benchmarks/clone.js
  9. +14 −14 benchmarks/index.js
  10. +18 −18 benchmarks/mem.js
  11. +4 −4 benchmarks/populate.js
  12. +14 −14 benchmarks/populationHeavyLoad.js
  13. +5 −5 examples/aggregate/aggregate.js
  14. +1 −1 examples/aggregate/person.js
  15. +4 −4 examples/doc-methods.js
  16. +1 −1 examples/express/connection-sharing/app.js
  17. +5 −5 examples/express/connection-sharing/routes.js
  18. +1 −1 examples/geospatial/geoJSONSchema.js
  19. +6 −6 examples/geospatial/geoJSONexample.js
  20. +7 −7 examples/geospatial/geospatial.js
  21. +2 −2 examples/geospatial/person.js
  22. +6 −6 examples/globalschemas/gs_example.js
  23. +1 −1 examples/globalschemas/person.js
  24. +5 −5 examples/lean/lean.js
  25. +1 −1 examples/lean/person.js
  26. +7 −7 examples/mapreduce/mapreduce.js
  27. +1 −1 examples/mapreduce/person.js
  28. +7 −7 examples/population/population-across-three-collections.js
  29. +6 −6 examples/population/population-basic.js
  30. +7 −7 examples/population/population-of-existing-doc.js
  31. +8 −8 examples/population/population-of-multiple-existing-docs.js
  32. +7 −7 examples/population/population-options.js
  33. +6 −6 examples/population/population-plain-objects.js
  34. +1 −1 examples/promises/person.js
  35. +10 −10 examples/promises/promise.js
  36. +1 −1 examples/querybuilder/person.js
  37. +5 −5 examples/querybuilder/querybuilder.js
  38. +1 −1 examples/replicasets/person.js
  39. +5 −5 examples/replicasets/replica-sets.js
  40. +7 −7 examples/schema/schema.js
  41. +2 −2 examples/statics/person.js
  42. +4 −4 examples/statics/statics.js
  43. +1 −1 format_deps.js
  44. +1 −1 karma.local.conf.js
  45. +1 −1 karma.sauce.conf.js
  46. +1 −1 lib/ES6Promise.js
  47. +28 −28 lib/aggregate.js
  48. +3 −3 lib/cast.js
  49. +14 −14 lib/collection.js
  50. +27 −27 lib/connection.js
  51. +89 −89 lib/document.js
  52. +1 −1 lib/document_provider.js
  53. +1 −1 lib/drivers/browser/ReadPreference.js
  54. +15 −15 lib/drivers/node-mongodb-native/collection.js
  55. +16 −16 lib/drivers/node-mongodb-native/connection.js
  56. +2 −2 lib/error/validation.js
  57. +2 −2 lib/error/validator.js
  58. +15 −15 lib/index.js
  59. +69 −69 lib/model.js
  60. +5 −5 lib/promise.js
  61. +3 −3 lib/promise_provider.js
  62. +50 −50 lib/query.js
  63. +11 −11 lib/querystream.js
  64. +41 −41 lib/schema.js
  65. +14 −14 lib/schema/array.js
  66. +3 −3 lib/schema/boolean.js
  67. +4 −4 lib/schema/buffer.js
  68. +11 −11 lib/schema/date.js
  69. +7 −7 lib/schema/documentarray.js
  70. +8 −8 lib/schema/embedded.js
  71. +4 −4 lib/schema/mixed.js
  72. +10 −10 lib/schema/number.js
  73. +4 −4 lib/schema/objectid.js
  74. +1 −1 lib/schema/operators/bitwise.js
  75. +20 −20 lib/schema/string.js
  76. +24 −24 lib/schematype.js
  77. +8 −8 lib/services/updateValidators.js
  78. +8 −8 lib/statemachine.js
  79. +25 −25 lib/types/array.js
  80. +8 −8 lib/types/buffer.js
  81. +6 −6 lib/types/documentarray.js
  82. +14 −14 lib/types/embedded.js
  83. +8 −8 lib/types/subdocument.js
  84. +20 −20 lib/utils.js
  85. +4 −4 lib/virtualtype.js
  86. +1 −1 package.json
  87. +3 −3 static.js
  88. +108 −108 test/aggregate.test.js
  89. +20 −20 test/browser/document.test_.js
  90. +8 −8 test/browser/example.test_.js
  91. +81 −81 test/browser/schema.test_.js
  92. +115 −115 test/browser/schema.validation.test_.js
  93. +4 −4 test/browser/types.buffer.test_.js
  94. +8 −8 test/browser/types.number.test_.js
  95. +10 −10 test/browser/types.objectid.test_.js
  96. +7 −7 test/cast.test.js
  97. +14 −14 test/collection.capped.test.js
  98. +5 −5 test/collection.test.js
  99. +8 −8 test/colors.js
  100. +17 −17 test/common.js
  101. +6 −6 test/connection.auth.test.js
  102. +7 −7 test/connection.reconnect.test.js
  103. +188 −188 test/connection.test.js
  104. +3 −3 test/crash.test.js
  105. +119 −119 test/document.hooks.test.js
  106. +9 −9 test/document.isselected.test.js
  107. +49 −49 test/document.modified.test.js
  108. +83 −83 test/document.populate.test.js
  109. +49 −49 test/document.strict.test.js
  110. +256 −256 test/document.test.js
  111. +11 −11 test/document.unit.test.js
  112. +27 −27 test/errors.validation.test.js
  113. +7 −7 test/gh-1408.test.js
  114. +9 −9 test/harmony/document.test_.js
  115. +9 −9 test/harmony/model.test_.js
  116. +6 −6 test/harmony/query.test_.js
  117. +57 −57 test/index.test.js
  118. +18 −18 test/model.aggregate.test.js
  119. +27 −27 test/model.create.test.js
  120. +143 −143 test/model.discriminator.querying.test.js
  121. +51 −51 test/model.discriminator.test.js
  122. +52 −52 test/model.field.selection.test.js
  123. +43 −43 test/model.findAndRemoveOne.test.js
  124. +145 −145 test/model.findOneAndUpdate.test.js
  125. +33 −33 test/model.geonear.test.js
  126. +24 −24 test/model.geosearch.test.js
  127. +8 −8 test/model.hydrate.test.js
  128. +48 −48 test/model.indexes.test.js
  129. +48 −48 test/model.mapreduce.test.js
  130. +34 −34 test/model.middleware.test.js
  131. +36 −36 test/model.populate.divergent.test.js
  132. +19 −19 test/model.populate.setting.test.js
  133. +370 −370 test/model.populate.test.js
  134. +91 −91 test/model.query.casting.test.js
  135. +378 −378 test/model.querying.test.js
  136. +52 −52 test/model.stream.test.js
  137. +674 −674 test/model.test.js
  138. +245 −245 test/model.update.test.js
  139. +12 −12 test/object.create.null.test.js
  140. +44 −44 test/promise.test.js
  141. +95 −95 test/promise_provider.test.js
  142. +40 −40 test/query.middleware.test.js
  143. +247 −247 test/query.test.js
  144. +15 −15 test/query.toconstructor.test.js
  145. +3 −3 test/schema.boolean.test.js
  146. +5 −5 test/schema.documentarray.test.js
  147. +4 −4 test/schema.mixed.test.js
  148. +11 −11 test/schema.onthefly.test.js
  149. +73 −73 test/schema.select.test.js
  150. +143 −143 test/schema.test.js
  151. +23 −23 test/schema.timestamps.test.js
  152. +3 −3 test/schema.type.test.js
  153. +160 −160 test/schema.validation.test.js
  154. +41 −41 test/shard.test.js
  155. +234 −234 test/types.array.test.js
  156. +59 −59 test/types.buffer.test.js
  157. +22 −22 test/types.document.test.js
  158. +38 −38 test/types.documentarray.test.js
  159. +9 −9 test/types.number.test.js
  160. +14 −14 test/updateValidators.unit.test.js
  161. +46 −46 test/utils.test.js
  162. +46 −46 test/versioning.test.js
  163. +6 −6 website.js
@@ -92,44 +92,44 @@ var commentData = {
BlogPost = mongoose.model('BlogPost', BlogPost);
suite.add('Casting - Embedded Docs - 0 Docs', {
- fn: function () {
+ fn: function() {
var BlogPost = mongoose.model('BlogPost');
var bp = new BlogPost();
bp.init(blogData);
}
}).add('Casting - Embedded Docs - 10 Docs', {
- fn: function () {
+ fn: function() {
var BlogPost = mongoose.model('BlogPost');
var bp = new BlogPost();
bp.init(blogData10);
}
}).add('Casting - Embedded Docs - 100 Docs', {
- fn: function () {
+ fn: function() {
var BlogPost = mongoose.model('BlogPost');
var bp = new BlogPost();
bp.init(blogData100);
}
}).add('Casting - Embedded Docs - 1000 Docs', {
- fn: function () {
+ fn: function() {
var BlogPost = mongoose.model('BlogPost');
var bp = new BlogPost();
bp.init(blogData1000);
}
}).add('Casting - Embedded Docs - 10000 Docs', {
- fn: function () {
+ fn: function() {
var BlogPost = mongoose.model('BlogPost');
var bp = new BlogPost();
bp.init(blogData10000);
}
})
-.on('cycle', function (evt) {
+.on('cycle', function(evt) {
if (process.env.MONGOOSE_DEV || process.env.PULL_REQUEST) {
console.log(String(evt.target));
}
-}).on('complete', function () {
+}).on('complete', function() {
if (!process.env.MONGOOSE_DEV && !process.env.PULL_REQUEST) {
var outObj = {};
- this.forEach(function (item) {
+ this.forEach(function(item) {
var out = {};
out.stats = item.stats;
delete out.stats.sample;
@@ -17,11 +17,11 @@ var mongo = require('mongodb');
*/
-mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
+mongoose.connect('mongodb://localhost/mongoose-bench', function(err) {
if (err) {
throw err;
}
- mongo.connect('mongodb://localhost/mongoose-bench', function (err, db) {
+ mongo.connect('mongodb://localhost/mongoose-bench', function(err, db) {
if (err) {
throw err;
}
@@ -48,7 +48,7 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
// insert all of the data here
var count = 1000;
for (var i = 0; i < 500; i++) {
- User.create(data, function (err, u) {
+ User.create(data, function(err, u) {
if (err) {
throw err;
}
@@ -60,20 +60,20 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
nData.age = data.age;
nData.likes = data.likes;
nData.address = data.address;
- user.insert(nData, function (err, res) {
+ user.insert(nData, function(err, res) {
dIds.push(res[0]._id);
--count || next();
});
}
function closeDB() {
- User.count(function (err, res) {
+ User.count(function(err, res) {
if (res !== 0) {
console.log('Still mongoose entries left...');
}
mongoose.disconnect();
});
- user.count({}, function (err, res) {
+ user.count({}, function(err, res) {
if (res !== 0) {
console.log('Still driver entries left...');
}
@@ -86,8 +86,8 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
suite.add('Delete - Mongoose', {
defer: true,
- fn: function (deferred) {
- User.remove({_id: mIds.pop()}, function (err) {
+ fn: function(deferred) {
+ User.remove({_id: mIds.pop()}, function(err) {
if (err) {
throw err;
}
@@ -96,24 +96,24 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
}
}).add('Delete - Driver', {
defer: true,
- fn: function (deferred) {
- user.remove({_id: dIds.pop()}, function (err) {
+ fn: function(deferred) {
+ user.remove({_id: dIds.pop()}, function(err) {
if (err) {
throw err;
}
deferred.resolve();
});
}
})
- .on('cycle', function (evt) {
+ .on('cycle', function(evt) {
if (process.env.MONGOOSE_DEV || process.env.PULL_REQUEST) {
console.log(String(evt.target));
}
- }).on('complete', function () {
+ }).on('complete', function() {
closeDB();
if (!process.env.MONGOOSE_DEV && !process.env.PULL_REQUEST) {
var outObj = {};
- this.forEach(function (item) {
+ this.forEach(function(item) {
var out = {};
out.stats = item.stats;
delete out.stats.sample;
@@ -19,11 +19,11 @@ var ObjectId = Schema.Types.ObjectId;
*/
-mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
+mongoose.connect('mongodb://localhost/mongoose-bench', function(err) {
if (err) {
throw err;
}
- mongo.connect('mongodb://localhost/mongoose-bench', function (err, db) {
+ mongo.connect('mongodb://localhost/mongoose-bench', function(err, db) {
if (err) {
throw err;
}
@@ -103,17 +103,17 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
var blogpost = db.collection('blogpost');
function closeDB() {
- mongoose.connection.db.dropDatabase(function () {
+ mongoose.connection.db.dropDatabase(function() {
mongoose.disconnect();
process.exit();
});
}
suite.add('Insert - Mongoose - Basic', {
defer: true,
- fn: function (deferred) {
+ fn: function(deferred) {
var nData = utils.clone(data);
- User.create(nData, function (err) {
+ User.create(nData, function(err) {
if (err) {
throw err;
}
@@ -122,9 +122,9 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
}
}).add('Insert - Driver - Basic', {
defer: true,
- fn: function (deferred) {
+ fn: function(deferred) {
var nData = utils.clone(data);
- user.insert(nData, function (err) {
+ user.insert(nData, function(err) {
if (err) {
throw err;
}
@@ -133,9 +133,9 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
}
}).add('Insert - Mongoose - Embedded Docs', {
defer: true,
- fn: function (deferred) {
+ fn: function(deferred) {
var bp = utils.clone(blogData);
- BlogPost.create(bp, function (err) {
+ BlogPost.create(bp, function(err) {
if (err) {
throw err;
}
@@ -144,25 +144,25 @@ mongoose.connect('mongodb://localhost/mongoose-bench', function (err) {
}
}).add('Insert - Driver - Embedded Docs', {
defer: true,
- fn: function (deferred) {
+ fn: function(deferred) {
var bp = utils.clone(blogData);
- blogpost.insert(bp, function (err) {
+ blogpost.insert(bp, function(err) {
if (err) {
throw err;
}
deferred.resolve();
});
}
})
- .on('cycle', function (evt) {
+ .on('cycle', function(evt) {
if (process.env.MONGOOSE_DEV || process.env.PULL_REQUEST) {
console.log(String(evt.target));
}
- }).on('complete', function () {
+ }).on('complete', function() {
closeDB();
if (!process.env.MONGOOSE_DEV && !process.env.PULL_REQUEST) {
var outObj = {};
- this.forEach(function (item) {
+ this.forEach(function(item) {
var out = {};
out.stats = item.stats;
delete out.stats.sample;
Oops, something went wrong.

0 comments on commit 9890109

Please sign in to comment.