Skip to content

Merge pull request #1327 from ergebnis/dependabot/github_actions/shiv… #2507

Merge pull request #1327 from ergebnis/dependabot/github_actions/shiv…

Merge pull request #1327 from ergebnis/dependabot/github_actions/shiv… #2507

Triggered via push April 22, 2024 22:44
Status Failure
Total duration 1m 39s
Artifacts

integrate.yaml

on: push
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Compile Phar
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 13 warnings
Coding Standards (7.4, locked)
Process completed with exit code 4.
Coding Standards (7.4, locked)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3.3.2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Compile Phar (7.4, locked)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3.3.2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Dependency Analysis (7.4, locked)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3.3.2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L131
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ $io->writeError(\sprintf('<error>%s</error>', $exception->getMessage())); return 1; } - if (null !== $indentFromInput) { + if (null === $indentFromInput) { $indent = $indentFromInput; } $composerFile = $input->getArgument('file');
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L146
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ $composerFile = Factory::getComposerFile(); } $composer = $this->factory->createComposer($io, $composerFile); - if (!$composer instanceof Composer) { + if (!true) { throw Exception\ShouldNotHappen::create(); } try {
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L161
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ $io->writeError(\sprintf('<error>%s</error>', $exception->getMessage())); return 1; } - if (null !== $indentFromExtra) { + if (null === $indentFromExtra) { $indent = $indentFromExtra; } if (null !== $indentFromInput && null !== $indentFromExtra) {
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L166
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ if (null !== $indentFromExtra) { $indent = $indentFromExtra; } - if (null !== $indentFromInput && null !== $indentFromExtra) { + if (null !== $indentFromInput || null !== $indentFromExtra) { $io->write('<warning>Configuration provided via options and composer extra. Using configuration from composer extra.</warning>'); } if (false === $input->getOption('dry-run') && !\is_writable($composerFile)) {
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L173
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ if (null !== $indentFromInput && null !== $indentFromExtra) { $io->write('<warning>Configuration provided via options and composer extra. Using configuration from composer extra.</warning>'); } - if (false === $input->getOption('dry-run') && !\is_writable($composerFile)) { + if (true === $input->getOption('dry-run') && !\is_writable($composerFile)) { $io->writeError(\sprintf('<error>%s is not writable.</error>', $composerFile)); return 1; }
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L173
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ if (null !== $indentFromInput && null !== $indentFromExtra) { $io->write('<warning>Configuration provided via options and composer extra. Using configuration from composer extra.</warning>'); } - if (false === $input->getOption('dry-run') && !\is_writable($composerFile)) { + if (false !== $input->getOption('dry-run') && !\is_writable($composerFile)) { $io->writeError(\sprintf('<error>%s is not writable.</error>', $composerFile)); return 1; }
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L295
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (true === $input->getOption('diff') || true === $input->getOption('dry-run')) { $io->writeError(\sprintf('<error>%s is not normalized.</error>', $composerFile)); $diff = $this->differ->diff($json->encoded(), $normalized->encoded()); - $io->write(['', '<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']); + $io->write(['<fg=yellow>---------- begin diff ----------</>', self::formatDiff($diff), '<fg=yellow>----------- end diff -----------</>', '']); } if (true === $input->getOption('dry-run')) { return 1;
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L325
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (true === $input->getOption('no-update-lock') || !$locker->isLocked()) { return 0; } - $io->write('<info>Updating lock file.</info>'); + $application = new Application(); $application->setAutoExit(false); return self::updateLockerInWorkingDirectory($application, $input, $output, \dirname($composerFile));
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L369
Escaped Mutant for Mutator "CastInt": --- Original +++ New @@ @@ if (null === $indentStyle) { throw new \RuntimeException(\sprintf('When using the indent-size option, an indent style (one of "%s") needs to be specified using the indent-style option.', \implode('", "', \array_keys(Normalizer\Format\Indent::CHARACTERS)))); } - if ((string) (int) $indentSize !== $indentSize || 1 > $indentSize) { + if ((string) $indentSize !== $indentSize || 1 > $indentSize) { throw new \RuntimeException(\sprintf('Indent size needs to be an integer greater than 0, but "%s" is not.', $indentSize)); } if (!\array_key_exists($indentStyle, Normalizer\Format\Indent::CHARACTERS)) {
Mutation Tests (7.4, locked): src/Command/NormalizeCommand.php#L448
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ if (!\is_int($indentSize)) { throw new \RuntimeException(\sprintf('Indent size needs to be an integer, got %s instead.', \gettype($indentSize))); } - if (1 > $indentSize) { + if (1 >= $indentSize) { throw new \RuntimeException(\sprintf('Indent size needs to be an integer greater than 0, but %d is not.', $indentSize)); } $indentStyle = $configuration['indent-style'];