Skip to content

Commit

Permalink
Merge pull request #199 from isaach1000/master
Browse files Browse the repository at this point in the history
Change lint so that process only exits on failure.
  • Loading branch information
lexander committed Jan 5, 2014
2 parents cba1920 + 97f108e commit f946bf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ if (options.server) {
} else {

var json = (new Y.YUIDoc(options)).run();
if (json === null) {
return;
}
options = Y.Project.mix(json, options);

if (!options.parseOnly) {
Expand Down
3 changes: 2 additions & 1 deletion lib/yuidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ YUI.add('yuidoc', function(Y) {
count++;
console.log('#' + count, item.message, item.line + '\n');
});
process.exit(code);
}
process.exit(code);
},
/**
* Process the config, walk the file tree and write out the JSON data.
Expand Down Expand Up @@ -335,6 +335,7 @@ YUI.add('yuidoc', function(Y) {

if (this.options.lint) {
this.lint(json.warnings);
return null;
}

/**
Expand Down

0 comments on commit f946bf3

Please sign in to comment.