axe-core
Advanced tools
Comparing version 3.2.2-canary.26efe05 to 3.2.2-canary.4ef60ab
{ | ||
"name": "axe-core", | ||
"version": "3.2.2-canary.26efe05", | ||
"version": "3.2.2-canary.4ef60ab", | ||
"contributors": [ | ||
@@ -5,0 +5,0 @@ { |
@@ -5,3 +5,3 @@ # Change Log | ||
## [3.2.2-canary.26efe05](https://github.com/dequelabs/axe-core/compare/v3.2.2...v3.2.2-canary.26efe05) (2019-04-10) | ||
## [3.2.2-canary.4ef60ab](https://github.com/dequelabs/axe-core/compare/v3.2.2...v3.2.2-canary.4ef60ab) (2019-04-10) | ||
@@ -8,0 +8,0 @@ |
@@ -42,3 +42,2 @@ const requiredOwned = axe.commons.aria.requiredOwned; | ||
function missingRequiredChildren(node, childRoles, all, role) { | ||
/* eslint max-statements: ["error", 22], complexity: ["error", 17] */ | ||
var i, | ||
@@ -45,0 +44,0 @@ l = childRoles.length, |
@@ -19,6 +19,2 @@ const { dom } = axe.commons; | ||
let out = virtualNode.children.reduce((out, { actualNode }) => { | ||
/*eslint | ||
max-statements: ["error", 20] | ||
complexity: ["error", 12] | ||
*/ | ||
const tagName = actualNode.nodeName.toUpperCase(); | ||
@@ -25,0 +21,0 @@ |
@@ -81,4 +81,2 @@ /* global context */ | ||
Array.from(r.cssRules).forEach(cssRule => { | ||
/* eslint max-statements: ["error", 20], complexity: ["error", 15] */ | ||
// ensure selectorText exists | ||
@@ -85,0 +83,0 @@ if (!cssRule.selectorText) { |
@@ -13,3 +13,2 @@ /* global aria, dom */ | ||
aria.validateAttrValue = function validateAttrValue(node, attr) { | ||
/*eslint complexity: ["error",17]*/ | ||
'use strict'; | ||
@@ -16,0 +15,0 @@ var matches, |
@@ -32,3 +32,2 @@ /* global dom, axe */ | ||
dom.findUpVirtual = function(element, target) { | ||
/*eslint complexity: ["error", 12]*/ | ||
let parent; | ||
@@ -35,0 +34,0 @@ |
/* global dom */ | ||
/*eslint complexity: ["error", 14]*/ | ||
/** | ||
@@ -4,0 +3,0 @@ * Get the scroll offset of the document passed in |
/* global dom */ | ||
/* eslint complexity: ["error",20] */ | ||
@@ -4,0 +3,0 @@ /** |
@@ -1,2 +0,1 @@ |
/* eslint complexity: ["error", 13], max-statements: ["error", 25] */ |
/* global dom */ |
@@ -3,0 +2,0 @@ |
@@ -29,3 +29,2 @@ /* global axe, dom, window */ | ||
dom.isInTextBlock = function isInTextBlock(node) { | ||
/* eslint complexity: ["error",17]*/ | ||
if (isBlock(node)) { | ||
@@ -32,0 +31,0 @@ // Ignore if the link is a block |
/* global dom */ | ||
/* eslint complexity: ["error", 20] */ | ||
@@ -36,3 +35,2 @@ /** | ||
dom.isVisible = function(el, screenReader, recursed) { | ||
//eslint complexity: 13 | ||
'use strict'; | ||
@@ -39,0 +37,0 @@ var style, nodeName, parent; |
/*global dom */ | ||
/*eslint complexity: ["error",20] */ | ||
@@ -4,0 +3,0 @@ const visualRoles = [ |
/* global dom */ | ||
/* eslint complexity: ["error",17] */ | ||
@@ -4,0 +3,0 @@ /** |
/* global dom */ | ||
/* eslint complexity: ["error",15] */ | ||
@@ -4,0 +3,0 @@ /** |
/* global table, dom */ | ||
/* eslint max-statements: ["error",70], complexity: ["error",47] */ | ||
@@ -4,0 +3,0 @@ /** |
@@ -77,3 +77,2 @@ /* global text */ | ||
) { | ||
/*eslint max-statements: ["error", 23] */ | ||
autocomplete = autocomplete.toLowerCase().trim(); | ||
@@ -80,0 +79,0 @@ stateTerms = stateTerms.concat(text.autocomplete.stateTerms); |
@@ -555,3 +555,2 @@ /*global Rule, Check, RuleResult, commons: true */ | ||
Audit.prototype.normalizeOptions = function(options) { | ||
/* eslint max-statements: ["error", 22] */ | ||
'use strict'; | ||
@@ -558,0 +557,0 @@ var audit = this; |
@@ -61,3 +61,2 @@ /*global CheckResult,DqElement */ | ||
Check.prototype.run = function(node, options, context, resolve, reject) { | ||
/* eslint max-statements: ["error", 17] */ | ||
'use strict'; | ||
@@ -64,0 +63,0 @@ options = options || {}; |
@@ -71,3 +71,2 @@ /*exported Context */ | ||
function normalizeContext(context) { | ||
/*eslint complexity: ["error", 13] */ | ||
'use strict'; | ||
@@ -234,3 +233,3 @@ | ||
function Context(spec) { | ||
/* eslint max-statements:["error",22], no-unused-vars:0 */ | ||
/* eslint no-unused-vars:0 */ | ||
'use strict'; | ||
@@ -237,0 +236,0 @@ |
/*global RuleResult, createExecutionContext, SupportError */ | ||
function Rule(spec, parentAudit) { | ||
/*eslint complexity: ["error", 11] */ | ||
'use strict'; | ||
@@ -145,4 +144,2 @@ | ||
Rule.prototype.run = function(context, options, resolve, reject) { | ||
/*eslint max-statements: ["error",17] */ | ||
const q = axe.utils.queue(); | ||
@@ -340,3 +337,3 @@ const ruleResult = new RuleResult(this); | ||
Rule.prototype.configure = function(spec) { | ||
/*eslint complexity:["error",14], max-statements:["error",22], no-eval:0 */ | ||
/*eslint no-eval:0 */ | ||
'use strict'; | ||
@@ -343,0 +340,0 @@ |
/* global reporters */ | ||
function configureChecksRulesAndBranding(spec) { | ||
/*eslint max-statements: ["error",21]*/ | ||
'use strict'; | ||
@@ -5,0 +4,0 @@ var audit; |
@@ -1,2 +0,1 @@ | ||
/*eslint indent: 0, complexity:["error", 12]*/ | ||
function isContext(potential) { | ||
@@ -84,3 +83,2 @@ 'use strict'; | ||
axe.run = function(context, options, callback) { | ||
/*eslint max-statements:["error",18] */ | ||
'use strict'; | ||
@@ -87,0 +85,0 @@ if (!axe._audit) { |
@@ -10,4 +10,3 @@ /** | ||
'use strict'; | ||
/*eslint no-bitwise: 0, eqeqeq: 0, complexity: ["error",27], | ||
max-statements:["error", 25], one-var: 0, -W041: 0 */ | ||
/*eslint no-bitwise: 0, eqeqeq: 0, one-var: 0, -W041: 0 */ | ||
var string = String(value); | ||
@@ -14,0 +13,0 @@ var length = string.length; |
@@ -80,3 +80,2 @@ /*eslint no-use-before-define: 0*/ | ||
// using a closure here and therefore cannot easily refactor toreduce the statements | ||
/*eslint max-statements: ["error", 31] */ | ||
var retVal, realArray, nodeName; | ||
@@ -83,0 +82,0 @@ function reduceShadowDOM(res, child) { |
@@ -1,2 +0,1 @@ | ||
/*eslint complexity: ["error", 12]*/ | ||
/** | ||
@@ -3,0 +2,0 @@ * Determines which CheckOption to use, either defined on the rule options, global check options or the check itself |
@@ -1,2 +0,2 @@ | ||
/* eslint max-statements:["error",18], complexity:["error",27], no-script-url:0 */ | ||
/* eslint no-script-url:0 */ | ||
/** | ||
@@ -3,0 +3,0 @@ * Check if a string contains mostly numbers |
@@ -82,3 +82,3 @@ const escapeSelector = axe.utils.escapeSelector; | ||
axe.utils.getSelectorData = function(domTree) { | ||
/* eslint max-statements:["error", 22], no-loop-func:0*/ | ||
/* eslint no-loop-func:0*/ | ||
@@ -310,4 +310,4 @@ // Initialize the return structure with the three maps | ||
: a.species === b.species | ||
? 0 | ||
: 1; | ||
? 0 | ||
: 1; | ||
}); | ||
@@ -339,3 +339,3 @@ } | ||
function generateSelector(elm, options, doc) { | ||
/*eslint max-statements:["error", 22], no-loop-func:0*/ | ||
/*eslint no-loop-func:0*/ | ||
if (!axe._selectorData) { | ||
@@ -342,0 +342,0 @@ throw new Error('Expect axe._selectorData to be set up'); |
/*global axe */ | ||
/*eslint max-statements: ["error", 36], complexity: ["error", 22]*/ | ||
function getXPathArray(node, path) { | ||
@@ -5,0 +4,0 @@ var sibling, count; |
@@ -69,3 +69,2 @@ // The lines below is because the latedef option does not work | ||
function convertAttributes(atts) { | ||
/*eslint indent:0*/ | ||
/*! Credit Mootools Copyright Mootools, MIT License */ | ||
@@ -76,3 +75,2 @@ if (!atts) { | ||
return atts.map(att => { | ||
// eslint complexity:["error", 13] | ||
var attributeKey = att.name.replace(reUnescape, ''); | ||
@@ -223,3 +221,2 @@ var attributeValue = (att.value || '').replace(reUnescape, ''); | ||
matchExpressions = function(domTree, expressions, recurse, filter) { | ||
/*eslint max-statements:["error", 34], complexity:["error", 22]*/ | ||
let stack = []; | ||
@@ -226,0 +223,0 @@ let nodes = Array.isArray(domTree) ? domTree : [domTree]; |
@@ -209,3 +209,2 @@ /*global uuid, utils, axe */ | ||
function(e) { | ||
/* eslint max-statements: ["error", 20]*/ | ||
var data = parseMessage(e.data); | ||
@@ -212,0 +211,0 @@ if (!data) { |
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
/* eslint complexity: ["error", 14]*/ | ||
function matchTags(rule, runOnly) { | ||
@@ -11,0 +10,0 @@ 'use strict'; |
@@ -103,3 +103,2 @@ /** | ||
*/ | ||
/*eslint max-statements:["error", 20]*/ | ||
axe.utils.select = function select(selector, context) { | ||
@@ -106,0 +105,0 @@ 'use strict'; |
@@ -1,3 +0,2 @@ | ||
/*eslint no-bitwise: 0, eqeqeq: 0, curly: 0, strict: 0, no-eq-null: 0, | ||
max-statements: 0, complexity: 0, no-shadow: 0, no-undef: 0 */ | ||
/*eslint no-bitwise: 0, eqeqeq: 0, curly: 0, strict: 0, no-eq-null: 0, no-shadow: 0, no-undef: 0 */ | ||
// uuid.js | ||
@@ -4,0 +3,0 @@ // |
{ | ||
"name": "axe-core", | ||
"description": "Accessibility engine for automated Web UI testing", | ||
"version": "3.2.2-canary.26efe05", | ||
"version": "3.2.2-canary.4ef60ab", | ||
"license": "MPL-2.0", | ||
@@ -6,0 +6,0 @@ "engines": { |
@@ -138,6 +138,6 @@ { | ||
}, | ||
"3.2.2-canary.26efe05": { | ||
"axe.js": "sha256-4ZWp8wEu9KEqA0QG33yu+hI9y7ZcyzKhuySBga4sLeU=", | ||
"axe.min.js": "sha256-WDKcHj6ZR73iWjWEoe8svz+XinqjwIRz8mgGKswUWgA=" | ||
"3.2.2-canary.4ef60ab": { | ||
"axe.js": "sha256-R1/W+xqwTqWSHTpq8lFC0Zgvn92FqVpF01uIjqM2a7Y=", | ||
"axe.min.js": "sha256-eOY+exvucsYr7XfPT9E4Tsv+LuuKUD07SYfacGQbAnM=" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1824603
44106