Skip to content

Commit

Permalink
Convert 'dir' setting to 'src and make 'dir' obsolete.
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalfrog committed Sep 14, 2014
1 parent d280933 commit 0a5947c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks/lib/phpcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,15 @@ exports.init = function(grunt) {
* @param Object runner
*/
exports.setup = function(runner) {
var dir, attr;

if(runner.data.dir){
dir = runner.data.dir;
grunt.log.writeln("The 'dir' option is deprecated, please use 'scr' instead.");
}else{
dir = runner.files[0].src;
}

var dir = runner.data.dir,
attr;
config = runner.options(defaults);

for (attr in cliOptions) {
Expand Down

0 comments on commit 0a5947c

Please sign in to comment.