1
0
Fork 0

Removed jslint headers from actions.

This commit is contained in:
Alan Plum 2014-08-27 11:57:10 +02:00
parent 606da1e3e8
commit bff47e558b
22 changed files with 19 additions and 35 deletions

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 140, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
/*global require, exports, module, SYS_CLUSTER_TEST, ArangoServerState, ArangoClusterComm, ArangoClusterInfo,
UPGRADE_ARGS: true */

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 150, sloppy: true, vars: true, white: true, plusplus: true, stupid: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////
@ -162,7 +161,7 @@ function parseBodyForCreateCollection (req, res) {
if (body.hasOwnProperty("distributeShardsLike") && cluster.isCoordinator()) {
r.parameter.distributeShardsLike = body.distributeShardsLike || "";
}
return r;
}

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require, CURSOR, DELETE_CURSOR */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 150, sloppy: true, vars: true, white: true, plusplus: true, stupid: true */
/*global require, ArangoAgency */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require, module */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, stupid: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
/*global require, exports, module, ArangoServerState */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, continue: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120, sloppy: true, vars: true, white: true, plusplus: true, stupid: true */
/*global require, CREATE_CURSOR */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,11 +1,3 @@
/*jslint indent: 2,
nomen: true,
maxlen: 100,
sloppy: true,
vars: true,
white: true,
plusplus: true,
stupid: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
/*global require, exports, module, ArangoServerState */
////////////////////////////////////////////////////////////////////////////////
@ -179,8 +178,7 @@ actions.defineHttp({
return;
}
/*jslint node: true, stupid: true */
internal.wal.flush(req.parameters.waitForSync === "true",
internal.wal.flush(req.parameters.waitForSync === "true",
req.parameters.waitForCollector === "true");
actions.resultOk(req, res, actions.HTTP_OK);
}
@ -1014,6 +1012,7 @@ actions.defineHttp({
prefix : false,
callback : function (req, res) {
/*jshint evil: true */
var body = req.requestBody;
var result;

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 180, sloppy: true, vars: true, white: true, plusplus: true */
/*global require, TRANSACTION */
////////////////////////////////////////////////////////////////////////////////
@ -168,7 +167,14 @@ var actions = require("org/arangodb/actions");
/// collections: {
/// write : [ "products", "materials" ]
/// },
/// action: "function () { var db = require('internal').db; db.products.save({}); db.materials.save({}); return 'worked!'; }"
/// action: (
/// "function () {" +
/// "var db = require('internal').db;" +
/// "db.products.save({});" +
/// "db.materials.save({});" +
/// "return 'worked!';" +
/// "}"
/// )
/// };
///
/// var response = logCurlRequest('POST', url, body);
@ -190,7 +196,13 @@ var actions = require("org/arangodb/actions");
/// collections: {
/// write : "products"
/// },
/// action : "function () { var db = require('internal').db; db.products.save({ _key: 'abc'}); db.products.save({ _key: 'abc'}); }"
/// action : (
/// "function () {" +
/// "var db = require('internal').db;" +
/// "db.products.save({ _key: 'abc'});" +
/// "db.products.save({ _key: 'abc'});" +
/// "}"
/// )
/// };
///
/// var response = logCurlRequest('POST', url, body);

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////
@ -537,6 +536,7 @@ function notFound (req, res, code, message) {
////////////////////////////////////////////////////////////////////////////////
function post_api_traversal(req, res) {
/*jshint evil: true */
var json = actions.getJsonBody(req, res);
if (json === undefined) {

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,5 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120, white: true, plusplus: true, unparam: true, regexp: true, vars: true,
stupid: true */
/*global require, applicationContext*/
////////////////////////////////////////////////////////////////////////////////