Skip to content

feat: Clickable rule names in TextReporter pointing to official documentation #9587

feat: Clickable rule names in TextReporter pointing to official documentation

feat: Clickable rule names in TextReporter pointing to official documentation #9587

Triggered via pull request May 11, 2024 20:16
Status Success
Total duration 5m 41s
Artifacts

ci.yml

on: pull_request
Matrix: tests
Matrix: Deployment checks
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
PHP 8.3 mutation tests: src/Console/Report/FixReport/TextReporter.php#L72
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ { $fixers = []; foreach ($appliedFixers as $appliedFixer) { - $url = $extraInfoFixers[$appliedFixer]['helpUri'] ?? ''; + $url = '' ?? $extraInfoFixers[$appliedFixer]['helpUri']; if ($isDecoratedOutput && '' !== $url) { $fixers[] = sprintf('<href=%s;fg=yellow>%s</>', OutputFormatter::escape($url), $appliedFixer); } else {
PHP 8.3 mutation tests: src/Console/Report/FixReport/TextReporter.php#L73
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ $fixers = []; foreach ($appliedFixers as $appliedFixer) { $url = $extraInfoFixers[$appliedFixer]['helpUri'] ?? ''; - if ($isDecoratedOutput && '' !== $url) { + if (!$isDecoratedOutput && '' !== $url) { $fixers[] = sprintf('<href=%s;fg=yellow>%s</>', OutputFormatter::escape($url), $appliedFixer); } else { $fixers[] = $appliedFixer;
PHP 8.3 mutation tests: src/Runner/Runner.php#L173
Escaped Mutant for Mutator "CatchBlockRemoval": --- Original +++ New @@ @@ } } } - } catch (\ParseError $e) { - $this->dispatchEvent(FixerFileProcessedEvent::NAME, new FixerFileProcessedEvent(FixerFileProcessedEvent::STATUS_LINT)); - $this->errorsManager->report(new Error(Error::TYPE_LINT, $name, $e)); - return null; } catch (\Throwable $e) { $this->processException($name, $e); return null;
PHP 8.3 mutation tests: src/Runner/Runner.php#L173
Escaped Mutant for Mutator "CatchBlockRemoval": --- Original +++ New @@ @@ $this->dispatchEvent(FixerFileProcessedEvent::NAME, new FixerFileProcessedEvent(FixerFileProcessedEvent::STATUS_LINT)); $this->errorsManager->report(new Error(Error::TYPE_LINT, $name, $e)); return null; - } catch (\Throwable $e) { - $this->processException($name, $e); - return null; } $fixInfo = null; if ([] !== $appliedFixers) {
PHP 8.3 mutation tests: src/Runner/Runner.php#L191
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $tokens->clearEmptyTokens(); $tokens->clearChanged(); $appliedFixers[] = $fixer->getName(); - if ($fixer instanceof FixerReportInterface) { + if (true) { $extraInfoFixers[$fixer->getName()] = $fixer->getExtraInfoFixers(); } }
PHP 8.3 mutation tests: src/Runner/Runner.php#L191
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $tokens->clearEmptyTokens(); $tokens->clearChanged(); $appliedFixers[] = $fixer->getName(); - if ($fixer instanceof FixerReportInterface) { + if (false) { $extraInfoFixers[$fixer->getName()] = $fixer->getExtraInfoFixers(); } }