grunt-contrib-jshint
Advanced tools
Comparing version 0.7.1 to 0.7.2
{ | ||
"name": "grunt-contrib-jshint", | ||
"description": "Validate files with JSHint.", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-jshint", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-jshint v0.7.1 [![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.7.2 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-jshint.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-jshint) | ||
@@ -208,2 +208,3 @@ > Validate files with JSHint. | ||
* 2013-11-16 v0.7.2 Only print file name once per error. | ||
* 2013-10-31 v0.7.1 Ability to set jshintrc option to true to use jshint's native ability for finding .jshintrc files relative to the linted files. | ||
@@ -237,2 +238,2 @@ * 2013-10-23 v0.7.0 Update to jshint 2.3.0. | ||
*This file was generated on Thu Oct 31 2013 09:48:13.* | ||
*This file was generated on Sat Nov 16 2013 09:34:14.* |
@@ -104,2 +104,3 @@ /* | ||
var lastfile = null; | ||
// Iterate over all errors. | ||
@@ -111,5 +112,8 @@ results.forEach(function(result) { | ||
// Something went wrong. | ||
grunt.verbose.or.write(msg); | ||
grunt.log.error(); | ||
// Only print file name once per error | ||
if (result.file !== lastfile) { | ||
grunt.verbose.or.write(msg); | ||
grunt.log.error(); | ||
} | ||
lastfile = result.file; | ||
@@ -116,0 +120,0 @@ var e = result.error; |
@@ -85,4 +85,4 @@ 'use strict'; | ||
test.ok(jshint.usingGruntReporter, 'Should be using the default grunt reporter.'); | ||
test.ok(result.match(/nodemodule\.js\s\.\.\.ERROR/g).length === 2, 'Should have reported nodemodule.js once per error.'); | ||
test.ok(result.match(/missingsemicolon\.js\s\.\.\.ERROR/g).length === 1, 'Should have reported missingsemicolon.js once per error.'); | ||
test.ok(result.match(/nodemodule\.js\s\.\.\.ERROR/g).length === 1, 'Should have reported nodemodule.js only once.'); | ||
test.ok(result.match(/missingsemicolon\.js\s\.\.\.ERROR/g).length === 1, 'Should have reported missingsemicolon.js only once.'); | ||
test.done(); | ||
@@ -89,0 +89,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
36598
465
238