Stop storing missing-image-alt-text lints

Bug: T370304
Change-Id: Ib473ddcc09c6c02e450a8664d21acbddaa7b2505
This commit is contained in:
Amir Sarabadani 2024-07-22 02:58:51 +02:00 committed by Ladsgroup
parent 22d72078b4
commit 97060d06e8

View file

@ -55,8 +55,8 @@ class RecordLintJob extends Job {
// [ 'id' => LintError ]
$errors = [];
foreach ( $this->params['errors'] as $errorInfo ) {
if ( $errorInfo['type'] === 'inline-media-caption' ) {
// Drop lints of this type for now
if ( in_array( $errorInfo['type'], [ 'inline-media-caption', 'missing-image-alt-text' ] ) ) {
// Drop lints of these types for now
continue;
}
$error = new LintError(