add cache-file config into deptrac.yaml #1823
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
test.yml
on: pull_request
Matrix: deptrac
Matrix: infection
Matrix: unit-tests
Annotations
4 errors and 18 warnings
deptrac (ubuntu-20.04, 8.2, true):
src/Core/Ast/Parser/Cache/AstFileReferenceFileCache.php#L143
Qossmic\Deptrac\Core\Ast\Parser\Cache\AstFileReferenceFileCache must not depend on Qossmic\Deptrac\Supportive\DependencyInjection\Exception\CacheFileException (Ast on DependencyInjection)
|
deptrac (ubuntu-20.04, 8.2, true)
Process completed with exit code 2.
|
deptrac (ubuntu-20.04, 8.1, false):
src/Core/Ast/Parser/Cache/AstFileReferenceFileCache.php#L143
Qossmic\Deptrac\Core\Ast\Parser\Cache\AstFileReferenceFileCache must not depend on Qossmic\Deptrac\Supportive\DependencyInjection\Exception\CacheFileException (Ast on DependencyInjection)
|
deptrac (ubuntu-20.04, 8.1, false)
Process completed with exit code 2.
|
unit-tests (ubuntu-20.04, 8.2, true)
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
deptrac (ubuntu-20.04, 8.2, true)
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
deptrac (ubuntu-20.04, 8.2, 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/
|
deptrac (ubuntu-20.04, 8.1, false)
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
deptrac (ubuntu-20.04, 8.1, false)
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/
|
unit-tests (ubuntu-20.04, 8.1, false)
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
infection (ubuntu-20.04, 8.1)
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/AstMap.php#L110
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
*/
private function recursivelyResolveDependencies(AstInherit $inheritDependency, ArrayObject $alreadyResolved = null, SplStack $pathStack = null) : iterable
{
- $alreadyResolved ??= new ArrayObject();
+ $alreadyResolved = new ArrayObject();
/** @var ArrayObject<string, true> $alreadyResolved */
if (null === $pathStack) {
/** @var SplStack<AstInherit> $pathStack */
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/AstMap.php#L133
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
return [];
}
foreach ($classReference->inherits as $inherit) {
- $alreadyResolved[$className] = true;
+ $alreadyResolved[$className] = false;
/** @var AstInherit[] $path */
$path = iterator_to_array($pathStack);
(yield $inherit->replacePath($path));
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/ClassLike/ClassLikeReference.php#L28
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* @param AstInherit[] $inherits
* @param DependencyToken[] $dependencies
*/
- public function __construct(private readonly ClassLikeToken $classLikeName, ClassLikeType $classLikeType = null, public readonly array $inherits = [], public readonly array $dependencies = [], public readonly bool $isInternal = false, private readonly ?FileReference $fileReference = null)
+ public function __construct(private readonly ClassLikeToken $classLikeName, ClassLikeType $classLikeType = null, public readonly array $inherits = [], public readonly array $dependencies = [], public readonly bool $isInternal = true, private readonly ?FileReference $fileReference = null)
{
$this->type = $classLikeType ?? ClassLikeType::TYPE_CLASSLIKE;
}
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/AstMap/File/FileReference.php#L41
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
/** @psalm-suppress ImpureFunctionCall */
$this->classLikeReferences = array_map(fn(ClassLikeReference $classReference): ClassLikeReference => $classReference->withFileReference($this), $classLikeReferences);
/** @psalm-suppress ImpureFunctionCall */
- $this->functionReferences = array_map(fn(FunctionReference $functionReference): FunctionReference => $functionReference->withFileReference($this), $functionReferences);
+ $this->functionReferences = $functionReferences;
}
public function getFilepath() : ?string
{
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/Parser/Cache/AstFileReferenceInMemoryCache.php#L25
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
public function set(FileReference $fileReference) : void
{
- $filepath = (string) realpath($fileReference->filepath);
+ $filepath = realpath($fileReference->filepath);
$this->cache[$filepath] = $fileReference;
}
}
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/Parser/NikicPhpParser/FileReferenceVisitor.php#L85
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
if ($node instanceof Node\FunctionLike) {
foreach ($this->templatesFromDocs($node) as $template) {
- $this->currentReference->removeTokenTemplate($template);
+
}
}
match (true) {
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/Parser/NikicPhpParser/FileReferenceVisitor.php#L89
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
}
match (true) {
$node instanceof Node\Stmt\Function_ => $this->currentReference = $this->fileReferenceBuilder,
- $node instanceof ClassLike && null !== $this->getClassReferenceName($node) => $this->currentReference = $this->fileReferenceBuilder,
$node instanceof Use_ && Use_::TYPE_NORMAL === $node->type => $this->leaveUse($node),
$node instanceof GroupUse => $this->leaveGroupUse($node),
default => null,
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/Parser/NikicPhpParser/FileReferenceVisitor.php#L108
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
{
$name = $this->getClassReferenceName($node);
if (null !== $name) {
- $isInternal = false;
+ $isInternal = true;
$docComment = $node->getDocComment();
if (null !== $docComment) {
$tokens = new TokenIterator($this->lexer->tokenize($docComment->getText()));
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/Parser/NikicPhpParser/FileReferenceVisitor.php#L113
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
if (null !== $docComment) {
$tokens = new TokenIterator($this->lexer->tokenize($docComment->getText()));
$docNode = $this->docParser->parse($tokens);
- $isInternal = [] !== array_merge($docNode->getTagsByName('@internal'), $docNode->getTagsByName('@deptrac-internal'));
+ $isInternal = [] !== $docNode->getTagsByName('@internal');
}
match (true) {
$node instanceof Interface_ => $this->enterInterface($name, $node, $isInternal),
|
infection (ubuntu-20.04, 8.1):
src/Core/Ast/Parser/NikicPhpParser/FileReferenceVisitor.php#L113
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
if (null !== $docComment) {
$tokens = new TokenIterator($this->lexer->tokenize($docComment->getText()));
$docNode = $this->docParser->parse($tokens);
- $isInternal = [] !== array_merge($docNode->getTagsByName('@internal'), $docNode->getTagsByName('@deptrac-internal'));
+ $isInternal = [] !== $docNode->getTagsByName('@deptrac-internal');
}
match (true) {
$node instanceof Interface_ => $this->enterInterface($name, $node, $isInternal),
|
infection (ubuntu-20.04, 8.1)
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/
|