Skip to content

Commit

Permalink
Add option for config file in local project.
Browse files Browse the repository at this point in the history
  • Loading branch information
kburson committed Jul 30, 2013
1 parent 9cc504a commit e9ed908
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks/coffeelint.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ module.exports = function(grunt) {

grunt.registerMultiTask('coffeelint', 'Validate files with CoffeeLint', function() {

var files = this.filesSrc;
var options = this.options({
force: false,
});
var errorCount = 0;
var warnCount = 0;
var files = this.filesSrc;
var options = this.options();

if (options.config != undefined) {
options = grunt.file.readJSON(options.config);
}

files.forEach(function(file) {
grunt.verbose.writeln('Linting ' + file + '...');
Expand Down

0 comments on commit e9ed908

Please sign in to comment.