From f3bf3281a33e2cb13fd4e901eef6db96e35009aa Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Fri, 24 May 2013 11:57:14 +0200 Subject: [PATCH] added js/models to jslint --- html/admin/js/models/arangoCollection.js | 4 ++++ html/admin/js/models/arangoDocument.js | 6 +++++- html/admin/js/models/arangoLog.js | 4 ++++ html/admin/js/models/arangoStatistics.js | 7 ++++++- html/admin/js/models/arangoStatisticsDescription.js | 8 ++++++-- html/admin/js/models/foxx.js | 7 +++++++ js/Makefile.files | 1 + 7 files changed, 33 insertions(+), 4 deletions(-) diff --git a/html/admin/js/models/arangoCollection.js b/html/admin/js/models/arangoCollection.js index d5151406a2..8dfe067fc3 100644 --- a/html/admin/js/models/arangoCollection.js +++ b/html/admin/js/models/arangoCollection.js @@ -1,5 +1,9 @@ +/*jslint indent: 2, nomen: true, maxlen: 120, vars: true, white: true, plusplus: true, nonpropdel: true, continue: true, regexp: true */ +/*global require, window, Backbone */ + window.arangoCollection = Backbone.Model.extend({ initialize: function () { + 'use strict'; }, urlRoot: "/_api/collection", diff --git a/html/admin/js/models/arangoDocument.js b/html/admin/js/models/arangoDocument.js index 1efb2f1c73..1d77d01c24 100644 --- a/html/admin/js/models/arangoDocument.js +++ b/html/admin/js/models/arangoDocument.js @@ -1,9 +1,13 @@ +/*jslint indent: 2, nomen: true, maxlen: 120, vars: true, white: true, plusplus: true, nonpropdel: true, continue: true, regexp: true */ +/*global require, window, Backbone */ + window.arangoDocument = Backbone.Model.extend({ initialize: function () { + 'use strict'; }, urlRoot: "/_api/document", defaults: { _id: "", - _rev: "", + _rev: "" } }); diff --git a/html/admin/js/models/arangoLog.js b/html/admin/js/models/arangoLog.js index de6c5b302e..549780a5b7 100644 --- a/html/admin/js/models/arangoLog.js +++ b/html/admin/js/models/arangoLog.js @@ -1,5 +1,9 @@ +/*jslint indent: 2, nomen: true, maxlen: 120, vars: true, white: true, plusplus: true, nonpropdel: true, continue: true, regexp: true */ +/*global require, window, Backbone */ + window.arangoLog = Backbone.Model.extend({ initialize: function () { + 'use strict'; }, urlRoot: "/_admin/log", defaults: { diff --git a/html/admin/js/models/arangoStatistics.js b/html/admin/js/models/arangoStatistics.js index c5f4cae8e8..fc6a7b8396 100644 --- a/html/admin/js/models/arangoStatistics.js +++ b/html/admin/js/models/arangoStatistics.js @@ -1,9 +1,14 @@ +/*jslint indent: 2, nomen: true, maxlen: 120, vars: true, white: true, plusplus: true, nonpropdel: true, continue: true, regexp: true */ +/*global require, window, Backbone */ + window.Statistics = Backbone.Model.extend({ defaults: { }, url: function() { + 'use strict'; + return "../statistics"; - }, + } }); diff --git a/html/admin/js/models/arangoStatisticsDescription.js b/html/admin/js/models/arangoStatisticsDescription.js index b1b51be318..5db7c7aa8b 100644 --- a/html/admin/js/models/arangoStatisticsDescription.js +++ b/html/admin/js/models/arangoStatisticsDescription.js @@ -1,3 +1,6 @@ +/*jslint indent: 2, nomen: true, maxlen: 120, vars: true, white: true, plusplus: true, nonpropdel: true, continue: true, regexp: true */ +/*global require, window, Backbone */ + window.StatisticsDescription = Backbone.Model.extend({ defaults: { "figures" : "", @@ -5,7 +8,8 @@ window.StatisticsDescription = Backbone.Model.extend({ }, url: function() { + 'use strict'; + return "../statistics-description"; - }, - + } }); diff --git a/html/admin/js/models/foxx.js b/html/admin/js/models/foxx.js index ddd9aaa7d9..4ab5af127b 100644 --- a/html/admin/js/models/foxx.js +++ b/html/admin/js/models/foxx.js @@ -1,3 +1,6 @@ +/*jslint indent: 2, nomen: true, maxlen: 120, vars: true, white: true, plusplus: true, nonpropdel: true, continue: true, regexp: true */ +/*global require, window, Backbone */ + window.Foxx = Backbone.Model.extend({ defaults: { "title": "", @@ -8,6 +11,8 @@ window.Foxx = Backbone.Model.extend({ }, url: function() { + 'use strict'; + if (this.get("_key")) { return "../aardvark/foxxes/" + this.get("_key"); } @@ -15,6 +20,8 @@ window.Foxx = Backbone.Model.extend({ }, isNew: function() { + 'use strict'; + return false; } diff --git a/js/Makefile.files b/js/Makefile.files index 0eebdd7108..854a16c1cc 100644 --- a/js/Makefile.files +++ b/js/Makefile.files @@ -48,6 +48,7 @@ JAVASCRIPT_JSLINT = \ `find @srcdir@/js/common/modules/org -name "*.js"` \ `find @srcdir@/js/client/modules -name "*.js"` \ `find @srcdir@/js/server/modules -name "*.js"` \ + `find @srcdir@/html/admin/js/models -name "*.js"` \ \ @srcdir@/js/client/client.js \ @srcdir@/js/server/server.js \