From c17b3d865e7d292fa45498fcaa33c6ebe7f8bfd9 Mon Sep 17 00:00:00 2001 From: Shunguo Date: Fri, 8 Sep 2023 08:55:31 -0500 Subject: [PATCH] disable rules #805 --- .../src/v4/rules/asciiart_alt_exists.ts | 4 ++++ .../src/v4/rules/emoticons_alt_exists.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/accessibility-checker-engine/src/v4/rules/asciiart_alt_exists.ts b/accessibility-checker-engine/src/v4/rules/asciiart_alt_exists.ts index 3ee4c4818..b91e25ef0 100644 --- a/accessibility-checker-engine/src/v4/rules/asciiart_alt_exists.ts +++ b/accessibility-checker-engine/src/v4/rules/asciiart_alt_exists.ts @@ -37,12 +37,16 @@ export let asciiart_alt_exists: Rule = { "group": "ASCII art must have a text alternative" } }, + /** + * Decision in planning 9/7/23 that this rule causes more reviews that we see actual problems in content, so turn these rules off rulesets: [{ "id": ["IBM_Accessibility", "WCAG_2_1", "WCAG_2_0"], "num": ["1.1.1"], "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_ONE }], + */ + rulesets: [], act: [], run: (context: RuleContext, options?: {}, contextHierarchies?: RuleContextHierarchy): RuleResult | RuleResult[] => { const ruleContext = context["dom"].node as Element; diff --git a/accessibility-checker-engine/src/v4/rules/emoticons_alt_exists.ts b/accessibility-checker-engine/src/v4/rules/emoticons_alt_exists.ts index adb135888..5e0caedca 100644 --- a/accessibility-checker-engine/src/v4/rules/emoticons_alt_exists.ts +++ b/accessibility-checker-engine/src/v4/rules/emoticons_alt_exists.ts @@ -37,12 +37,17 @@ export let emoticons_alt_exists: Rule = { "group": "Emoticons must have a short text alternative that describes their purpose" } }, + /** + * Decision in planning 9/7/23 that this rule causes more reviews that we see actual problems in content, so turn these rules off + rulesets: [{ "id": ["IBM_Accessibility", "WCAG_2_1", "WCAG_2_0"], "num": ["1.1.1"], "level": eRulePolicy.VIOLATION, "toolkitLevel": eToolkitLevel.LEVEL_TWO }], + */ + rulesets: [], act: [], run: (context: RuleContext, options?: {}, contextHierarchies?: RuleContextHierarchy): RuleResult | RuleResult[] => { const validateParams = {