![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
access-sniff
Advanced tools
Readme
A CLI and Phantom.js library for HTML_CodeSniffer
Install this plugin with npm install access-sniff
then use it in your project with
var accessSniff = require('access-sniff');
var files = ['**/*.html'];
accessSniff.start(files, options);
or install the module globally and type
sniff test/**/*.html -r json -l reports
You can pass some options
accessibilityLevel
is a string
options: {
accessibilityLevel: 'WCAG2A'
}
Levels are WCAG2A
, WCAG2AA
, and WCAG2AAA
accessibilityrc
is a boolean
options: {
accessibilityrc: true
}
Set to true to access a .accessibilityrc file in your project which should be layed out as:
{
"ignore": [
"WCAG2A.Principle2.Guideline2_4.2_4_2.H25.1.NoTitleEl",
"WCAG2A.Principle3.Guideline3_1.3_1_1.H57.2"
]
}
ignore
is a array
You can ignore rules by placing them in an array outlined below
options: {
ignore : [
'WCAG2A.Principle2.Guideline2_4.2_4_2.H25.1.NoTitleEl'
'WCAG2A.Principle3.Guideline3_1.3_1_1.H57.2'
]
}
reportFormat
is a string
options: {
reportFormat: 'json'
}
Text or JSON format output
reportLocation
is a string
options: {
reportLocation : 'reports'
}
Set the value to where you want reports created
reportLevels
is a object
options: {
reportLevels: {
notice: true,
warning: true,
error: true
}
}
Set a value to false
to limit output
verbose
is a boolean
options: {
verbose: false
}
Output messages to console, set to true by default
domElement
is a boolean
options: {
domElement: false
}
Include reference (tag name, class names & id) to reported elements. Optional for both output formats.
force
is a boolean
options: {
force: true
}
Continue running grunt in the event of failures
You can use the CLI component by installing it globally with npm install -g access-sniff
sniff test/**/*.html -r json -l reports
sniff test/**/*.html -r csv -l reports
sniff test/**/*.html -r txt -l reports
-r
or -reportType
txt, csv, json.
-r
or -reportLocation
-q
or -quiet
FAQs
A node/iojs library & CLI for HTML_Codesniffer
We found that access-sniff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.