access-sniff
Advanced tools
Comparing version 0.2.1 to 1.0.0
{ | ||
"name": "access-sniff", | ||
"version": "0.2.1", | ||
"version": "1.0.0", | ||
"description": "A node/iojs library & CLI for HTML_Codesniffer", | ||
@@ -5,0 +5,0 @@ "main": "src/accessSniff.js", |
@@ -6,6 +6,7 @@ # AccessSniff | ||
- [Gulp plugin](https://github.com/yargalot/gulp-accessibility) | ||
- [Grunt plugin](https://github.com/yargalot/grunt-accessibility) | ||
![Example Image](img/example.png) | ||
NOTE: This is in beta, please leave feedback. Would love it :) | ||
## Getting Started | ||
@@ -12,0 +13,0 @@ Install this plugin with `npm install access-sniff` then use it in your project with |
@@ -25,9 +25,11 @@ /* | ||
this.options = Accessibility.Defaults; | ||
this.basepath = process.cwd(); | ||
this.failTask = false; | ||
this.log = ''; | ||
this.fileContents = ''; | ||
// Defaults options with input options | ||
_.defaults(options, Accessibility.Defaults); | ||
this.options = options; | ||
if (this.options.accessibilityrc) { | ||
@@ -37,5 +39,2 @@ this.options.ignore = fs.readFile('.accessibilityrc').ignore; | ||
// Extend options with input options | ||
_.extend(this.options, options); | ||
_that = this; | ||
@@ -222,12 +221,9 @@ | ||
childProcess.execFile(phantomPath, childArgs, function(err, stdout, stderr) { | ||
// handle results | ||
if (!err) { | ||
if (err) { | ||
deferredOutside.fulfill(); | ||
} | ||
_this.parseOutput(stdout, deferredOutside); | ||
_this.parseOutput(stdout, deferredOutside); | ||
return; | ||
} | ||
deferredOutside.fulfill(); | ||
}); | ||
@@ -244,2 +240,5 @@ | ||
console.error('There was an error'); | ||
console.error(err); | ||
return err; | ||
@@ -246,0 +245,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
817877
0
184