refactor Created Storage for avoid php-mock and simplify filesystem a… #221
Annotations
7 warnings
Infection (ubuntu-latest, 8.3):
src/ConfigurationFile/ConfigurationFile.php#L107
Escaped Mutant for Mutator "CatchBlockRemoval":
@@ @@
if (!$toolConfiguration->isEmptyWarnings()) {
$this->toolsWarnings = array_merge($this->toolsWarnings, $toolConfiguration->getWarnings());
}
- } catch (ToolIsNotSupportedException $ex) {
- $this->toolsWarnings[] = "The tool {$toolName} is not supported by GitHooks.";
} catch (ToolConfigurationDataIsNullException $ex) {
$this->toolsErrors[] = "The tag '{$toolName}' is empty.";
}
|
Infection (ubuntu-latest, 8.3):
src/ConfigurationFile/Printer/ToolsTable.php#L15
Escaped Mutant for Mutator "Foreach_":
@@ @@
public function __construct(array $tools)
{
$this->headers = [ConfigurationFile::TOOLS, 'Commands'];
- foreach ($tools as $key => $tool) {
+ foreach ([] as $key => $tool) {
$this->rows[] = [$key, $tool->prepareCommand()];
}
}
}
|
Infection (ubuntu-latest, 8.3):
src/LoadTools/FastExecution.php#L52
Escaped Mutant for Mutator "Continue_":
@@ @@
foreach ($configurationFile->getToolsConfiguration() as $tool) {
if (!in_array($tool->getTool(), self::ACCELERABLE_TOOLS)) {
$tools[] = $tool;
- continue;
+ break;
}
$originalPaths = $tool->getPaths();
$modifiedFiles = $this->fileUtils->getModifiedFiles();
|
Infection (ubuntu-latest, 8.3):
src/LoadTools/FastExecution.php#L93
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
@@ @@
protected function fileIsInPaths(string $file, array $paths): bool
{
foreach ($paths as $path) {
- if (is_file($path) && $this->fileUtils->isSameFile($file, $path)) {
+ if (is_file($path) && !$this->fileUtils->isSameFile($file, $path)) {
return true;
}
if ($this->fileUtils->directoryContainsFile($path, $file)) {
|
Infection (ubuntu-latest, 8.3):
src/Tools/Process/ProcessFake.php#L97
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
*/
public function wait(callable $callback = null): int
{
- return $this->isSuccessful ? 0 : 1;
+ return $this->isSuccessful ? 0 : 0;
}
/**
* Mocks that the process fails.
|
Infection (ubuntu-latest, 8.3):
src/Tools/Tool/CodeSniffer/CodeSniffer.php#L43
Escaped Mutant for Mutator "Continue_":
@@ @@
$arguments = array_diff(self::ARGUMENTS, [self::EXECUTABLE_PATH_OPTION]);
foreach ($arguments as $option) {
if (empty($this->args[$option])) {
- continue;
+ break;
}
switch ($option) {
case self::PATHS:
|
Infection (ubuntu-latest, 8.3):
src/Tools/Tool/SecurityChecker.php#L49
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
case self::IGNORE_ERRORS_ON_EXIT:
break;
default:
- $command .= ' ' . $this->args[self::OTHER_ARGS_OPTION];
+ $command .= ' ';
break;
}
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
CodeCoverage
Expired
|
1.36 MB |
|
GitHooks Metrics - 09-07-2024
Expired
|
1.9 MB |
|
Infection
Expired
|
158 KB |
|
PhPMetrics
Expired
|
380 KB |
|