W3C html validation grunt plugin, Forked from html-grunt-validation. Validate all files in a directory automatically.
This plug-in has been extended to generate the W3C error's source code context/reference from validated code. This will help users to find the error easily by just copy/paste from validated page source.
Original plug-in was skipping validation for all files/URL after any Error-Free file/URL. This will not skip files after a error free file/URL and will validate all configured files/URLs.
This plug-in has also been extended for generating W3C reports in HTML format and now has some extra settings.
In your project's Gruntfile, add a section named validation to the data object passed into grunt.initConfig().
remoteFiles: 'validation-files.json', // JSON file contains array of page paths.
When a string is set, there will be generated a checkstyle report in this path.
Default value: 'false' If set to true sub folder inside options.errorHTMLRootDir folder will have a Timestamp with format - 'w3cErrors-Month-Date-Year-Hours-Minutes', an example can be 'w3cErrors-3-23-2015-09-37'. If set to false then it will overwrite the error sub folder and will not have the Timestamp, folder name will be 'w3cErrors'.
Setup your proxy when you are behind a corporate proxy and encounters ETIMEDOUT.
File that will wrap your files inside.
Note: line reported will be the partial line, if you see a negative number this means that the error is in the wrapfile.
2017-03-24 v0.1.9 Fix to consider relax error while generating checkstyle Report and also fixed an issue where it was failing for running the tool on multiple Sites with single test.
2015-08-18 v0.1.6 Updated the Documentation issues highlighted by a user.
2015-08-18 v0.1.5 Updated the code for fixing an issue where it was skipping the report creation for URLs which were changing only Query String Parameter.
2015-08-18 v0.1.4 Updated plug-in to fix the error in temp file name.
2015-08-18 v0.1.3 Updated plug-in to include error template as part of installation and also add configuration for errorFileFunction to pass a function.
2015-08-17 v0.1.2 Updated Plug-in on the basis of new W3CJS plug-in changes because W3C Mark-up validator API changed their URL.
2015-07-08 v0.1.1 Updated the code for fixing some issues related to code break because current API started returning an info object which doesn't have some required properties so error report creation was breaking.
2015-04-25 v0.0.9 Updated to extended for generating the W3C error's source code context/reference from validated code. This will help users to find the error easily by just copy/paste from validated page source.
2015-04-23 v0.0.8 Updated the Release History.
2015-04-23 v0.0.7 Changed the version number to push to NPM, this Version is more stable than the previous versions because it has fix for Local repository validations.
2015-03-29 v0.0.6 Updated Comments and headers of files.
2015-03-23 v0.0.5 Updated Readme for new settings which has been added to generate the HTML reoprts for W3C errors, also added sample handlebar template for HTML report.
2015-03-19 v0.0.1 Updated Package.json and License file to publish the plug-in with new features.
2014-04-03 v0.1.15 Updated dependencies (jshnt, nodeunit, request), gitignore, code cleanup etc..
2014-03-23 v0.1.14 Updated with wrapfile & server url options.
2013-12-26 v0.1.13 Fixed running multiple tasks fail due to validation failure.
2013-08-31 v0.1.6 Added relaxed validation, w3cjs updated from 0.1.9 to 0.1.10.
2013-08-31 v0.1.5 Added remote validation support. Max network error retry count.
2013-08-19 v0.1.4 Fixed issues. Added 'stoponerror' option, validation report added.