Skip to content

Add GitLab code quality reporting. #1

Add GitLab code quality reporting.

Add GitLab code quality reporting. #1

Triggered via pull request September 27, 2023 02:14
Status Success
Total duration 3m 16s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

mt-annotations.yaml

on: pull_request
Matrix: tests
Annotations Status
3s
Annotations Status
Fit to window
Zoom out
Zoom in

Annotations

1 warning
Mutation Testing Code Review Annotations 8.1: src/Logger/GitLabCodeQualityLogger.php#L58
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ public function getLogLines() : array { $lines = []; - $projectRootDirectory = trim(shell_exec('git rev-parse --show-toplevel')); + $projectRootDirectory = shell_exec('git rev-parse --show-toplevel'); foreach ($this->resultsCollector->getEscapedExecutionResults() as $escapedExecutionResult) { $lines[] = ['type' => 'issue', 'fingerprint' => $escapedExecutionResult->getMutantHash(), 'check_name' => $escapedExecutionResult->getMutatorName(), 'description' => 'Escaped Mutant for Mutator ' . $escapedExecutionResult->getMutatorName(), 'content' => Str::convertToUtf8(Str::trimLineReturns($escapedExecutionResult->getMutantDiff())), 'categories' => ['Escaped Mutant'], 'location' => ['path' => Path::makeRelative($escapedExecutionResult->getOriginalFilePath(), $projectRootDirectory), 'lines' => ['begin' => $escapedExecutionResult->getOriginalStartingLine()]], 'severity' => 'major']; }