Full checks #1130
Annotations
12 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
src/Domain/Analyser/BaseLineResultsRemover.php#L39
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$baseLineResultsComparator = new BaseLineResultsComparator($baseLineAnalysisResults);
foreach ($latestAnalysisResults->getAnalysisResults() as $analysisResult) {
if ($analysisResult->getSeverity()->isWarning() && $ignoreWarnings) {
- continue;
+ break;
}
if (!$this->isInHistoricResults($analysisResult, $baseLineResultsComparator, $historyAnalyser)) {
$prunedAnalysisResultsBuilder->addAnalysisResult($analysisResult);
|
src/Domain/HistoryAnalyser/UnifiedDiffParser/LineMutation.php#L83
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
return null === $b;
}
if (null === $b) {
- return false;
+ return true;
}
return $a->getLineNumber() === $b->getLineNumber();
}
}
|
src/Domain/HistoryAnalyser/UnifiedDiffParser/Parser.php#L60
Escaped Mutant for Mutator "DoWhile":
--- Original
+++ New
@@ @@
if ($removeFinalLine) {
unset($lines[$finalLineIndex]);
}
- } while ($removeFinalLine);
+ } while (false);
return $lines;
}
}
|
src/Domain/HistoryAnalyser/UnifiedDiffParser/Parser.php#L62
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
--- Original
+++ New
@@ @@
// Strip trailing empty lines from diff
do {
$finalLineIndex = count($lines) - 1;
- $removeFinalLine = $finalLineIndex >= 0 && '' === trim($lines[$finalLineIndex]);
+ $removeFinalLine = $finalLineIndex > 0 && '' === trim($lines[$finalLineIndex]);
if ($removeFinalLine) {
unset($lines[$finalLineIndex]);
}
|
src/Domain/HistoryAnalyser/UnifiedDiffParser/Parser.php#L62
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
// Strip trailing empty lines from diff
do {
$finalLineIndex = count($lines) - 1;
- $removeFinalLine = $finalLineIndex >= 0 && '' === trim($lines[$finalLineIndex]);
+ $removeFinalLine = $finalLineIndex >= 0 && '' === $lines[$finalLineIndex];
if ($removeFinalLine) {
unset($lines[$finalLineIndex]);
}
|
src/Domain/HistoryAnalyser/UnifiedDiffParser/internal/RangeInformation.php#L47
Escaped Mutant for Mutator "PregMatchRemoveCaret":
--- Original
+++ New
@@ @@
public function __construct(string $line)
{
$matches = [];
- $match = preg_match('/^@@ -(\\d+)(,\\d+){0,1} \\+(\\d+)(,\\d+){0,1} @@/', $line, $matches);
+ $match = preg_match('/@@ -(\\d+)(,\\d+){0,1} \\+(\\d+)(,\\d+){0,1} @@/', $line, $matches);
if (1 !== $match) {
throw DiffParseException::invalidRangeInformation($line);
}
|
src/Domain/RandomResultsPicker/RandomResultsPicker.php#L37
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$issuesToPickFrom = $issues->getAnalysisResults();
for ($i = 0; $i < $randomIssuesToFix; ++$i) {
$totalRemaining = count($issuesToPickFrom);
- $issuePickedIndex = $this->randomNumberGenerator->getRandomNumber($totalRemaining - 1);
+ $issuePickedIndex = $this->randomNumberGenerator->getRandomNumber($totalRemaining - 0);
$issuePicked = $issuesToPickFrom[$issuePickedIndex];
$randomIssues->addAnalysisResult($issuePicked);
array_splice($issuesToPickFrom, $issuePickedIndex, 1);
|
src/Domain/RandomResultsPicker/RandomResultsPicker.php#L37
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$issuesToPickFrom = $issues->getAnalysisResults();
for ($i = 0; $i < $randomIssuesToFix; ++$i) {
$totalRemaining = count($issuesToPickFrom);
- $issuePickedIndex = $this->randomNumberGenerator->getRandomNumber($totalRemaining - 1);
+ $issuePickedIndex = $this->randomNumberGenerator->getRandomNumber($totalRemaining - 2);
$issuePicked = $issuesToPickFrom[$issuePickedIndex];
$randomIssues->addAnalysisResult($issuePicked);
array_splice($issuesToPickFrom, $issuePickedIndex, 1);
|
src/Domain/ResultsParser/AnalysisResultsImporter.php#L23
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $resultsParser->convertFromString($analysisResultsAsString, $projectRoot);
- } catch (InvalidContentTypeException|ParseAtLocationException $e) {
+ } catch (InvalidContentTypeException $e) {
throw AnalysisResultsImportException::fromException($resultsParser->getIdentifier(), $e);
}
}
}
|
src/Domain/Utils/Path.php#L123
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
}
// Add the root directory again
self::$buffer[$path] = $canonicalPath = $root . implode('/', $canonicalParts);
- ++self::$bufferSize;
+ --self::$bufferSize;
// Clean up regularly to prevent memory leaks
if (self::$bufferSize > self::CLEANUP_THRESHOLD) {
self::$buffer = array_slice(self::$buffer, -self::CLEANUP_SIZE, null, true);
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The logs for this run have expired and are no longer available.
Loading