[API Refactor] Fix JSLint failures

Fix JSLint failures by excluding top-level code,
and by explicitly declaring variable require.
This commit is contained in:
Victor Woeltjen 2016-01-08 12:16:32 -08:00
parent 82094477a3
commit aa63308e0b
4 changed files with 6 additions and 4 deletions

View File

@ -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 `<index>/<type>`.
object models should be persisted. Should take the form `<index>/<type>`.

View File

@ -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
});
};

View File

@ -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,

View File

@ -146,7 +146,7 @@
<sourceJsFolder>${basedir}</sourceJsFolder>
<excludes>
<exclude>**/lib/**</exclude>
<exclude>app.js</exclude>
<exclude>*.js</exclude>
<exclude>node_modules/**/*</exclude>
<exclude>protractor/**/*</exclude>
</excludes>