You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
-`ddev-phpstan.configPath`: Path to custom PHPStan configuration file
54
+
-`ddev-phpstan.configPath`: Path to custom PHPStan configuration file. If left empty, the extension automatically looks for common configuration files like `phpstan.neon`, `phpstan.neon.dist`, `phpstan.dist.neon` in the workspace root.
55
55
-`ddev-phpstan.excludePaths`: Array of paths to exclude from analysis (includes common exclusions by default)
56
56
57
-
**Important:** When `configPath` is specified, the extension will only use the configuration file and ignore the `level` and `excludePaths` settings, as these should be defined in the PHPStan configuration file itself.
57
+
**Important:** When `configPath` is specified or an auto-detected configuration file is found, the extension will use that configuration file. In this case, the `level` and `excludePaths` settings from VS Code are ignored, as these should be defined in the PHPStan configuration file itself.
58
58
59
59
### Example Configuration
60
60
@@ -82,7 +82,7 @@ Key settings in VS Code preferences:
82
82
-**Common Exclusions**: Automatically excludes vendor code, cache directories, and other common paths that shouldn't be analyzed
83
83
-**Save-based Validation**: Runs analysis when files are saved for optimal performance
84
84
85
-
**Note:** When `configPath` is set to a specific PHPStan configuration file, the `level` and `excludePaths` settings will be ignored, and these values should instead be configured in your PHPStan configuration file.
85
+
**Note:** When `configPath` is set to a specific PHPStan configuration file (or one is auto-detected), the `level` and `excludePaths` settings will be ignored, and these values should instead be configured in your PHPStan configuration file.
0 commit comments