Clean up space-after-keywords lint violations

This eliminates the following when running `gulp lint`:

> error  Keyword "catch" must be followed by whitespace

Closes #1083
This commit is contained in:
Alex Nicksay 2015-10-07 10:26:23 -04:00
parent bd1cb9d166
commit 13f09f397c
9 changed files with 12 additions and 12 deletions

4
cli.js
View File

@ -81,7 +81,7 @@ cli.loadConfig = function() {
try {
isFile = fs.statSync(confPath).isFile();
}
catch(e) {
catch (e) {
isFile = false;
}
@ -423,7 +423,7 @@ cli.generateDocs = function() {
try {
template = require(env.opts.template + '/publish');
}
catch(e) {
catch (e) {
logger.fatal('Unable to load template: ' + e.message || e);
}

View File

@ -122,7 +122,7 @@ global.app = (function() {
try {
cli.runCommand(cb);
}
catch(e) {
catch (e) {
if (e.rhinoException) {
logger.fatal( e.rhinoException.printStackTrace() );
} else {

View File

@ -105,7 +105,7 @@ exports.getResourcePath = function(filepath, filename) {
try {
fs.readdirSync(_path);
}
catch(e) {
catch (e) {
return false;
}

View File

@ -171,7 +171,7 @@ Parser.prototype.parse = function(sourceFiles, encoding) {
try {
sourceCode = fs.readFileSync(filename, encoding);
}
catch(err) {
catch (err) {
logger.error('Unable to read and parse the source file %s: %s', filename, err);
}
}

View File

@ -84,7 +84,7 @@ function setDocletScopeToTitle(doclet, tag) {
try {
doclet.setScope(tag.title);
}
catch(e) {
catch (e) {
jsdoc.util.logger.error(e.message);
}
}

View File

@ -13,7 +13,7 @@ var toDir = exports.toDir = function(_path) {
try {
isDirectory = fs.statSync(_path).isDirectory();
}
catch(e) {
catch (e) {
isDirectory = false;
}

View File

@ -37,7 +37,7 @@ exports.handlers = {
try {
value = JSON.parse(tag.value);
}
catch(e) {
catch (e) {
logger.error('@source tag expects a valid JSON value, like { "filename": "myfile.js", "lineno": 123 }.');
return;
}

View File

@ -607,7 +607,7 @@ jasmine.XmlHttpRequest = (typeof XMLHttpRequest == "undefined") ? function() {
function tryIt(f) {
try {
return f();
} catch(e) {
} catch (e) {
}
return null;
}
@ -806,7 +806,7 @@ jasmine.Env.prototype.describe = function(description, specDefinitions) {
var declarationError = null;
try {
specDefinitions.call(suite);
} catch(e) {
} catch (e) {
declarationError = e;
}
@ -1608,7 +1608,7 @@ jasmine.FakeTimer.prototype.runFunctionsWithinRange = function(oldMillis, nowMil
funcToRun.millis,
true);
}
} catch(e) {
} catch (e) {
}
}
this.runFunctionsWithinRange(oldMillis, nowMillis);

View File

@ -54,7 +54,7 @@ function isValidSpec(file, matcher) {
// ...be relevant to the current runtime
file.indexOf(skipPath) === -1;
}
catch(e) {
catch (e) {
result = false;
}