mirror of https://gitee.com/bigwinds/arangodb
Removed jslint headers from actions.
This commit is contained in:
parent
606da1e3e8
commit
bff47e558b
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 120, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require, CURSOR, DELETE_CURSOR */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 150, sloppy: true, vars: true, white: true, plusplus: true, stupid: true */
|
||||
/*global require, ArangoAgency */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require, module */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, stupid: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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 */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, continue: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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 */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
/*jslint indent: 2,
|
||||
nomen: true,
|
||||
maxlen: 100,
|
||||
sloppy: true,
|
||||
vars: true,
|
||||
white: true,
|
||||
plusplus: true,
|
||||
stupid: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 120, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
||||
/*global require */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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*/
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue