feat(spec): init spec plugin#235
Draft
roxblnfk wants to merge 2 commits into
Draft
Annotations
11 warnings
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L178
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
return [];
}
- $keys = [self::SCRIPT_ALL_KEY];
+ $keys = [];
/** @var array{scripts?: array<string, string>}&array<string, mixed> $composer */
$composer = \json_decode(
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L97
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
\mkdir((string) $path, 0755, true);
- $io->success(\sprintf('Created %s/', $path));
+
}
/**
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L96
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
return;
}
- \mkdir((string) $path, 0755, true);
+ \mkdir((string) $path, 494, true);
$io->success(\sprintf('Created %s/', $path));
}
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L96
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
return;
}
- \mkdir((string) $path, 0755, true);
+ \mkdir((string) $path, 492, true);
$io->success(\sprintf('Created %s/', $path));
}
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L93
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private static function ensureDirectory(Path $path, SymfonyStyle $io): void
{
if ($path->isDir()) {
- return;
+
}
\mkdir((string) $path, 0755, true);
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L82
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$io->note(\sprintf('Left existing %s untouched.', $configPath));
}
} catch (\Throwable $exception) {
- $output->writeln('');
+
$output->writeln(\sprintf('<fg=red>%s</>', $exception->getMessage()));
return Command::FAILURE;
}
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L73
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
# Non-interactive + existing config: bail out before touching the file.
if ($configPath->isFile() && !$input->isInteractive()) {
$io->warning(\sprintf('%s already exists. Skipping (non-interactive mode).', $configPath));
- return Command::SUCCESS;
+
}
if (self::writeConfig($configPath, $srcPath, $suites, $io)) {
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L72
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
# Non-interactive + existing config: bail out before touching the file.
if ($configPath->isFile() && !$input->isInteractive()) {
- $io->warning(\sprintf('%s already exists. Skipping (non-interactive mode).', $configPath));
+
return Command::SUCCESS;
}
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L63
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$srcPath = self::discoverSourceDirectory($input, $basePath, $io);
$testsPath = $basePath->join('tests');
- self::ensureDirectory($testsPath, $io);
+
$suites = self::discoverSuites($testsPath, $io);
$composerKeys = self::updateComposerScripts($suites, $basePath, $io);
|
|
Run Infection:
bridge/symfony-console/src/Command/Init.php#L58
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
try {
$basePath = Path::create((string) $input->getOption('path'));
- self::ensureDirectory($basePath, $io);
+
$srcPath = self::discoverSourceDirectory($input, $basePath, $io);
|
background
wait
wait-all
cancel
parallel
Loading