feat: implement dynamic rule discovery and incremental level filtering

This commit is contained in:
Enes Yakıştır
2026-06-06 13:48:10 +03:00
parent c42ab714ff
commit 2a97138fec
24 changed files with 283 additions and 27 deletions
+5
View File
@@ -14,6 +14,11 @@ abstract class AbstractRule implements RuleInterface
abstract public function getStandard(): WCAGStandard;
abstract public function getSeverity(): Severity;
public function getLevel(): int
{
return 4;
}
protected function createViolation(DOMElement $element, string $message, ?string $suggestion = null): Violation
{
$doc = $element->ownerDocument;