code: function configureChecksRulesAndBranding(spec) {
  	'use strict';
  	var audit;
  
  	audit = axe._audit;
  	if (!audit) {
  		throw new Error('No audit configured');
  	}
  
  	if (
  		spec.reporter &&
  		(typeof spec.reporter === 'function' || reporters[spec.reporter])
  	) {
  		audit.reporter = spec.reporter;
  	}
  
  	if (spec.checks) {
  		spec.checks.forEach(function(check) {
  			audit.addCheck(check);
  		});
  	}
  
  	const modifiedRules = [];
  	if (spec.rules) {
  		spec.rules.forEach(function(rule) {
  			modifiedRules.push(rule.id);
  			audit.addRule(rule);
  		});
  	}
  
  	if (spec.disableOtherRules) {
  		audit.rules.forEach(rule => {
  			if (modifiedRules.includes(rule.id) === false) {
  				rule.enabled = false;
  			}
  		});
  	}
  
  	if (typeof spec.branding !== 'undefined') {
  		audit.setBranding(spec.branding);
  	} else {
  		audit._constructHelpUrls();
  	}
  
  	if (spec.tagExclude) {
  		audit.tagExclude = spec.tagExclude;
  	}
  
  	// Support runtime localization
  	if (spec.locale) {
  		audit.applyLocale(spec.locale);
  	}
  }
docs: /* global reporters