grunt-contrib-jshint
Advanced tools
Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "grunt-contrib-jshint", | ||
"description": "Validate files with JSHint.", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-jshint", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-jshint v0.9.0 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-jshint.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-jshint) | ||
# grunt-contrib-jshint v0.9.1 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-jshint.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-jshint) | ||
@@ -218,2 +218,3 @@ > Validate files with JSHint. | ||
* 2014-03-12 v0.9.1 Don't pass reporterOutput option to jshint. | ||
* 2014-03-12 v0.9.0 Replace deprecated grunt.util._.clone with Object.create() Replace deprecated grunt.util.hooker with hooker lib Enhancing the readability of the output. Reporter output is relative to the output file. Pass jshint options to the external reporter. | ||
@@ -250,2 +251,2 @@ * 2013-12-25 v0.8.0 Update to jshint 2.4.0. | ||
*This file was generated on Wed Mar 12 2014 10:07:58.* | ||
*This file was generated on Wed Mar 12 2014 15:53:34.* |
@@ -156,2 +156,8 @@ /* | ||
// Get reporter output directory for relative paths in reporters | ||
if (options.reporterOutput) { | ||
var reporterOutputDir = path.dirname(options.reporterOutput); | ||
delete options.reporterOutput; | ||
} | ||
// Select a reporter to use | ||
@@ -191,5 +197,4 @@ var reporter = exports.selectReporter(options); | ||
cliOptions.reporter = function(results, data) { | ||
var fromDir = path.dirname(options.reporterOutput); | ||
results.forEach(function(datum) { | ||
datum.file = fromDir ? path.relative(fromDir, datum.file) : datum.file; | ||
datum.file = reporterOutputDir ? path.relative(reporterOutputDir, datum.file) : datum.file; | ||
}); | ||
@@ -196,0 +201,0 @@ reporter(results, data, options); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19493
242
251