@diegovelasquezweb/a11y-engine 0.11.5 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -853,11 +853,13 @@ function buildFindings(inputPayload, cliArgs) {
|
|
|
853
853
|
const fixInfo = ruleInfo.fix || {};
|
|
854
854
|
const resolvedGuardrails = resolveGuardrails(ruleInfo, null);
|
|
855
855
|
|
|
856
|
-
let recFix =
|
|
857
|
-
?
|
|
858
|
-
:
|
|
859
|
-
?
|
|
860
|
-
:
|
|
856
|
+
let recFix = fixInfo.description
|
|
857
|
+
? fixInfo.description
|
|
858
|
+
: apgUrl
|
|
859
|
+
? apgUrl
|
|
860
|
+
: v.helpUrl
|
|
861
|
+
? v.helpUrl
|
|
862
|
+
: null;
|
|
861
863
|
|
|
862
864
|
const codeLang = detectCodeLang(fixInfo.code);
|
|
863
865
|
const fileSearchPattern = getFileSearchPattern(ctx.framework, codeLang);
|
|
@@ -930,7 +932,7 @@ function buildFindings(inputPayload, cliArgs) {
|
|
|
930
932
|
primary_source_scope: ownership.primarySourceScope,
|
|
931
933
|
search_strategy: ownership.searchStrategy,
|
|
932
934
|
component_hint: extractComponentHint(bestSelector) ?? derivePageHint(route.path),
|
|
933
|
-
needs_verification: !!v._fromIncomplete,
|
|
935
|
+
needs_verification: !!v._fromIncomplete || !!v.needs_verification,
|
|
934
936
|
verification_command: `pnpm a11y --base-url ${route.url} --routes ${route.path} --only-rule ${v.id} --max-routes 1`,
|
|
935
937
|
verification_command_fallback: `node scripts/audit.mjs --base-url ${route.url} --routes ${route.path} --only-rule ${v.id} --max-routes 1`,
|
|
936
938
|
pm_summary: ruleInfo.pm?.summary ?? null,
|