mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
feat(drupal): re-add phpstan.neon.dist
This commit is contained in:
parent
af24a4b4fa
commit
f911d52573
|
@ -66,6 +66,7 @@ final class CreateListOfFilesToGenerate
|
|||
new TemplateFile(data: 'drupal/Dockerfile', name: 'Dockerfile'),
|
||||
new TemplateFile(data: 'drupal/docker-compose.yaml', name: 'docker-compose.yaml'),
|
||||
new TemplateFile(data: 'drupal/justfile', name: 'justfile'),
|
||||
new TemplateFile(data: 'drupal/phpstan.neon.dist', name: 'phpstan.neon.dist'),
|
||||
]);
|
||||
|
||||
$extraDatabases = Arr::get($configurationData, 'database.extra_databases', []);
|
||||
|
|
16
templates/drupal/phpstan.neon.dist.twig
Normal file
16
templates/drupal/phpstan.neon.dist.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
# {{ managedText | raw }}
|
||||
|
||||
parameters:
|
||||
level: {{ php.phpstan.level }}
|
||||
excludePaths:
|
||||
- *Test.php
|
||||
- *TestBase.php
|
||||
paths:
|
||||
{% for path in php.phpstan.paths -%}
|
||||
- {{ path }}
|
||||
{%- endfor %}
|
||||
|
||||
{% if php.phpstan.baseline %}
|
||||
includes:
|
||||
- phpstan-baseline.neon
|
||||
{% endif %}
|
Loading…
Reference in a new issue