From cc4b63fe261a39b55b621e426d87346042412741 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 29 Apr 2024 09:31:05 +0200 Subject: [PATCH] CI: take utils/ into account in class-leak (#5847) * CI: take utils/ into account in class-leak * fix * raise min version --- .github/workflows/code_analysis.yaml | 5 ++++- composer.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 619235fbecd..cd29c4c06b3 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -40,8 +40,11 @@ jobs: - name: 'Active Classes' run: | - vendor/bin/class-leak check bin config src rules \ + vendor/bin/class-leak check bin config src rules utils \ + --skip-suffix "Rector" \ + --skip-type="Rector\\Utils\\Compiler\\Unprefixer" \ --skip-type="Rector\\NodeTypeResolver\\PHPStan\\Scope\\Contract\\NodeVisitor\\ScopeResolverNodeVisitorInterface" \ + --skip-type="Rector\\PhpDocParser\\PhpParser\\SmartPhpParserFactory" \ --skip-type="Rector\\BetterPhpDocParser\\Contract\\BasePhpDocNodeVisitorInterface" \ --skip-type="Rector\\BetterPhpDocParser\\Contract\\PhpDocParser\\PhpDocNodeDecoratorInterface" \ --skip-type="Rector\\BetterPhpDocParser\\ValueObject\\Type\\FullyQualifiedIdentifierTypeNode" diff --git a/composer.json b/composer.json index 9a46fda80cb..a880b8d818b 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ "symplify/phpstan-rules": "^12.4.5", "symplify/rule-doc-generator": "^12.1.10", "symplify/vendor-patches": "^11.2", - "tomasvotruba/class-leak": "0.2.11", + "tomasvotruba/class-leak": "^0.2.13", "tomasvotruba/cognitive-complexity": "^0.2", "tomasvotruba/unused-public": "^0.3", "tracy/tracy": "^2.9"