From b0f52d88cfe10e3cbd8354d57961d03de247e33c Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Thu, 5 Jan 2023 17:36:04 +0100
Subject: [PATCH] Add more file extensions and exclude test directories for
 PHPStand

---
 templates/tests/phpstan.neon | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/templates/tests/phpstan.neon b/templates/tests/phpstan.neon
index 340a688..3229b41 100644
--- a/templates/tests/phpstan.neon
+++ b/templates/tests/phpstan.neon
@@ -6,10 +6,14 @@ parameters:
   fileExtensions:
     - module
     - theme
-    - profile
+    - inc
     - install
+    - profile
+    - engine
   ignoreErrors:
     - '#Plugin definitions cannot be altered.#'
+  excludePaths:
+    - '*/tests/*.php'
 includes:
   - /var/www/html/vendor/mglaman/phpstan-drupal/extension.neon
   - /var/www/html/vendor/phpstan/phpstan-deprecation-rules/rules.neon
-- 
GitLab