1
0
Fork 0

Removed jslint headers from system apps.

This commit is contained in:
Alan Plum 2014-08-27 13:12:25 +02:00
parent bff47e558b
commit 71155440e6
21 changed files with 21 additions and 41 deletions

View File

@ -8,13 +8,13 @@
"forin": true,
"freeze": true,
"immed": true,
"indent": true,
"laxbreak": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"undef": true,
"maxlen": 120,
"-W014": true
"indent": 2,
"maxlen": 120
}

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
/*global require, applicationContext*/
////////////////////////////////////////////////////////////////////////////////
@ -427,7 +426,7 @@ controller.get("/query/result/download/:query", function(req, res) {
}
return string;
}
}
var decodeFunction = function (input) {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
/*global require, applicationContext*/
////////////////////////////////////////////////////////////////////////////////
@ -154,7 +153,7 @@
// only make these functions available in dispatcher mode!
controller.post("/plan", startUp);
controller.put("/plan", startUp);
controller.put("/plan/credentials", function(req, res) {
var body = req.body(),
u = body.user,
@ -202,7 +201,7 @@
controller.get("/upgrade", function(req, res) {
//uname pswd
var k = getStarter();
var u = plans.getCredentials();
var r = k.upgrade(u.name, u.passwd);
@ -214,7 +213,7 @@
plans.replaceRunInfo(r.runInfo);
res.json("ok");
}
});
controller.get("/cleanup", function(req, res) {
@ -259,7 +258,7 @@
*
* Returns a string containing the cluster type
* Possible anwers:
* - testSetup
* - testSetup
* - symmetricalSetup
* - asymmetricalSetup
*
@ -308,7 +307,7 @@
list = coords.getList(),
diffList = diff.Coordinators(),
didBeat = beats.didBeat();
_.each(list, function(v, k) {
v.name = k;
resList.push(v);

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
/*global exports, appCollection*/
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, plusplus: true, unparam: true */
/*global exports, appCollection*/
////////////////////////////////////////////////////////////////////////////////
@ -30,16 +29,16 @@
exports.Swagger = function () {
"use strict";
var db = require("internal").db,
_aal = db._collection("_aal"),
_ = require("underscore"),
foxx_manager = require("org/arangodb/foxx/manager");
// Define the functionality to receive the documentation.
// And transform it into swagger format.
// Get the overview of all installed foxxes.
this.list = function(basePath) {
var result = {},
@ -51,7 +50,7 @@ exports.Swagger = function () {
while (res.hasNext()) {
var m = res.next().mount;
if (m === "/aardvark") {
} else {
apis.push({
path: m
@ -60,7 +59,7 @@ exports.Swagger = function () {
}
return result;
},
this.listOne = function(basePath, key) {
var result = {},
res;
@ -81,8 +80,8 @@ exports.Swagger = function () {
return result;
},
// Get details of one specific installed foxx.
// Get details of one specific installed foxx.
this.show = function(mount) {
var result = {},
apis = [],

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 100 */
/*global require, exports*/
////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120, white: true, plusplus: true, unparam: true, vars: true, continue: true */
/*global require, applicationContext, ArangoServerState, ArangoClusterInfo, ArangoClusterComm*/
////////////////////////////////////////////////////////////////////////////////
@ -136,7 +135,7 @@ function computeStatisticsRaw (result, start, clusterId) {
+ " SORT s.time "
+ " return s",
{ start: start - 2 * STATISTICS_INTERVAL, clusterId: clusterId });
result.times = [];
var key;
@ -268,7 +267,7 @@ function computeStatisticsRaw15M (result, start, clusterId) {
+ " SORT s.time "
+ " return s",
{ start: start - 2 * STATISTICS_HISTORY_INTERVAL, clusterId: clusterId });
var lastRaw = null;
var lastRaw2 = null;
@ -404,7 +403,7 @@ function computeStatisticsLong (attrs, clusterId) {
+ " SORT s.time "
+ " return s",
{ end: end, clusterId: clusterId });
var long = { times: [] };
computeStatisticsValues(long, values, attrs);
@ -534,7 +533,7 @@ controller.get("cluster", function (req, res) {
url += sep + "start=" + encodeURIComponent(req.params("start"));
sep = "&";
}
if (req.parameters.hasOwnProperty("filter")) {
url += sep + "filter=" + encodeURIComponent(req.params("filter"));
sep = "&";

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, applicationContext */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, exports */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, applicationContext */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, exports, applicationContext */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, describe, it */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, module, describe, it, beforeEach */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, exports, applicationContext */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, module, describe, it, beforeEach */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, module, exports, describe, it, beforeEach */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, exports */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, applicationContext */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, exports, applicationContext */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, describe, it */
(function () {
'use strict';

View File

@ -1,4 +1,3 @@
/*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require, module, describe, it, beforeEach */
(function () {
'use strict';