From aa63308e0b391c5892eabb57841d9a78004326bc Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 8 Jan 2016 12:16:32 -0800 Subject: [PATCH] [API Refactor] Fix JSLint failures Fix JSLint failures by excluding top-level code, and by explicitly declaring variable require. --- docs/src/guide/index.md | 4 ++-- karma.conf.js | 2 +- platform/framework/src/FrameworkLayer.js | 2 ++ pom.xml | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/guide/index.md b/docs/src/guide/index.md index 8451210d35..7c3e78de61 100644 --- a/docs/src/guide/index.md +++ b/docs/src/guide/index.md @@ -2245,7 +2245,7 @@ options. The sources can be deployed in the same directory structure used during development. A few utilities are included to support development processes. ## Command-line Build -Open MCT Web includes a script for building via command line using Maven 3.0.4 +Open MCT Web includes a script for building via command line using Maven 3.3.9 https://maven.apache.org/ . Invoking mvn clean install will: @@ -2435,4 +2435,4 @@ The following configuration constants are recognized by Open MCT Web bundles: * `ELASTIC_ROOT`: URL or path to the ElasticSearch instance to be used for domain object persistence. Should not include a trailing slash. * `ELASTIC_PATH`: Path relative to the ElasticSearch instance where domain - object models should be persisted. Should take the form `/`. \ No newline at end of file + object models should be persisted. Should take the form `/`. diff --git a/karma.conf.js b/karma.conf.js index e42e783159..9e2204af26 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -81,6 +81,6 @@ module.exports = function(config) { // Continuous Integration mode. // If true, Karma captures browsers, runs the tests and exits. - singleRun: false + singleRun: true }); }; diff --git a/platform/framework/src/FrameworkLayer.js b/platform/framework/src/FrameworkLayer.js index 753eb91dfe..4cffd465cc 100644 --- a/platform/framework/src/FrameworkLayer.js +++ b/platform/framework/src/FrameworkLayer.js @@ -22,6 +22,7 @@ /*global define, window, requirejs*/ define([ + 'require', './Constants', './FrameworkInitializer', './LogLevel', @@ -35,6 +36,7 @@ define([ './register/ExtensionSorter', './bootstrap/ApplicationBootstrapper' ], function ( + require, Constants, FrameworkInitializer, LogLevel, diff --git a/pom.xml b/pom.xml index 10997a2fc5..b113c09702 100644 --- a/pom.xml +++ b/pom.xml @@ -146,7 +146,7 @@ ${basedir} **/lib/** - app.js + *.js node_modules/**/* protractor/**/*