feat: Clickable rule names in TextReporter
pointing to official documentation
#9587
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();
}
}
|