diff --git a/tasks/build-examples.js b/tasks/build-examples.js
index 6f5744bd8e..2a14ac6196 100644
--- a/tasks/build-examples.js
+++ b/tasks/build-examples.js
@@ -48,7 +48,7 @@ function getLinkToApiHtml(requires) {
var lis = requires.map(function(symb) {
var href = '../apidoc/' + symb + '.html';
return '
' + symb + '';
+ symb + '">' + symb + '';
});
return '';
}
diff --git a/tasks/generate-info.js b/tasks/generate-info.js
index 1523c0a6a4..a2961f01b8 100644
--- a/tasks/generate-info.js
+++ b/tasks/generate-info.js
@@ -109,7 +109,7 @@ function getNewer(date, newer, callback) {
* pass the sourceDir to the task so it can do the walking.
*/
if (isWindows) {
- paths = [sourceDir].concat(externsPaths);
+ paths = [sourceDir].concat(externsPaths);
}
callback(null, newer ? paths : []);
diff --git a/tasks/test-coverage.js b/tasks/test-coverage.js
index 2d4152b90f..bc45f92a82 100644
--- a/tasks/test-coverage.js
+++ b/tasks/test-coverage.js
@@ -44,7 +44,7 @@ var copyOpts = {
/**
* A small utility method printing out log messages.
*/
-var log = function(msg){
+var log = function(msg) {
process.stdout.write(msg + '\n');
};
@@ -56,10 +56,10 @@ var log = function(msg){
* adjusted to use path.join
*/
var deleteFolderRecursive = function(p) {
- if( fs.existsSync(p) ) {
- fs.readdirSync(p).forEach(function(file,index){
+ if (fs.existsSync(p)) {
+ fs.readdirSync(p).forEach(function(file,index) {
var curPath = path.join(p, file);
- if(fs.lstatSync(curPath).isDirectory()) { // recurse
+ if (fs.lstatSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
@@ -73,7 +73,7 @@ var deleteFolderRecursive = function(p) {
* Creates folders for backup and instrumentation and copies the contents of the
* current src folder into them.
*/
-var setupBackupAndInstrumentationDir = function(){
+var setupBackupAndInstrumentationDir = function() {
if (!fs.existsSync(backupDir)) {
log('• create directory for backup of src: ' + backupDir);
fs.mkdirSync(backupDir);
@@ -95,7 +95,7 @@ var setupBackupAndInstrumentationDir = function(){
* backup over the src directory and removes the instrumentation and backup
* directory.
*/
-var revertBackupAndInstrumentationDir = function(){
+var revertBackupAndInstrumentationDir = function() {
log('• copy original src back to src folder');
wrench.copyDirSyncRecursive(backupDir, dir, copyOpts);
log('• delete backup directory');
@@ -120,7 +120,7 @@ var collectAndWriteCoverageData = function(code) {
revertBackupAndInstrumentationDir();
log('• write report from collected data');
- reporter.write(collector, true, function () {
+ reporter.write(collector, true, function() {
process.exit(0);
});
};
@@ -168,7 +168,7 @@ var foundAllJavaScriptSourceFiles = function(err, files) {
* coverage process by gathering all JavaScript files and then instrumenting
* them.
*/
-var main = function(){
+var main = function() {
setupBackupAndInstrumentationDir();
glob(dir + '/**/*.js', {}, foundAllJavaScriptSourceFiles);
};
@@ -180,5 +180,3 @@ if (require.main === module) {
}
module.exports = main;
-
-
diff --git a/tasks/test.js b/tasks/test.js
index cd87d49bba..6ce93f0116 100644
--- a/tasks/test.js
+++ b/tasks/test.js
@@ -82,7 +82,7 @@ function runTests(includeCoverage, callback) {
}
if (require.main === module) {
- runTests(false, function(code){
+ runTests(false, function(code) {
process.exit(code);
});
}