//
// Grunt AccessSniff Task
// ------------------------

module.exports = function(grunt) {

  var accessSniff = require('access-sniff');

  grunt.registerMultiTask('accessibility', 'Use HTML codesniffer to grade accessibility', function() {

    var done = this.async();
    var options = this.options({});

    accessSniff
      .default(options.urls || this.filesSrc, options)
      .then(function(report) {
        if (options.reportLocation) {
          accessSniff.report(report, {
            location: options.reportLocation,
            reportType: options.reportType
          });
        }

        grunt.log.ok('Testing Complete');
        done();
      })
      .catch(function(error) {
        grunt.fail.warn(error);
      });

  });

};

//
// Grunt AccessSniff Task
// ------------------------

module.exports = function(grunt) {

  var accessSniff = require('access-sniff');

  grunt.registerMultiTask('accessibility', 'Use HTML codesniffer to grade accessibility', function() {

    var done = this.async();
    var options = this.options({});

    accessSniff
      .default(options.urls || this.filesSrc, options)
      .then(function(report) {
        if (options.reportLocation) {
          accessSniff.report(report, {
            reportLocation: options.reportLocation,
            reportType: options.reportType
          });
        }

        grunt.log.ok('Testing Complete');
        done();
      })
      .catch(function(error) {
        grunt.fail.warn(error);
      });

  });

};

Fix the report option "reportLocation"
Fix the report option "reportLocation"

Public interface of AccessSniff describes "reportLocation"; not "location".
