arialinter
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -19,2 +19,3 @@ var ArialLinter = require('../arialinter.js').ArialLinter; | ||
console.log(('The HTML of the file ' + file + ' doenst seem to be valid according the WCAG 2.0 spec.\n').red); | ||
console.log(linter.getReport('text')); | ||
callback(); | ||
@@ -21,0 +22,0 @@ } |
@@ -18,3 +18,3 @@ var jsonFormatter = { | ||
endFormat: function() { | ||
return ''; | ||
return ''; | ||
}, | ||
@@ -42,3 +42,3 @@ | ||
if (messages.length === 0) { | ||
return '{ errors: [] }'; | ||
return '{ "errors": [] }'; | ||
} | ||
@@ -48,6 +48,9 @@ | ||
output += '{ errors: ['; | ||
// output += '\n\nFile: ' + filename.$('html').html() + '\n'; | ||
output += '{ "errors": ['; | ||
for (var x = 0; x < len; x++) { | ||
output += '{ type: "' + capitalize(messages[x].type) + '", rule: "' + capitalize(messages[x].rule) + '", message: "' + capitalize(messages[x].message) + '" },'; | ||
output += '{ "type": "' + capitalize(messages[x].type) + '", "rule": "' + capitalize(messages[x].rule) + '", "message": "' + capitalize(messages[x].message) + '" }'; | ||
if (x < (len - 1)) { | ||
output += ','; | ||
} | ||
} | ||
@@ -54,0 +57,0 @@ output += ']}'; |
{ | ||
"name": "arialinter", | ||
"description": "AriaLinter provides a simple accesibility linter for HTML documents.", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"homepage": "https://github.com/globant-ui/arialinter", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
35599
1045