Skip to content

Commit

Permalink
Merge pull request #3 from headsnet/parameterise-config-file-paths
Browse files Browse the repository at this point in the history
Parameterise config file values for PHPStan and ECS
  • Loading branch information
benr77 authored Jun 28, 2024
2 parents 40bd4d4 + 3f635c4 commit fcc2b38
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions grumphp.conventions.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

parameters:
convention.EXEC_GRUMPHP_COMMAND: 'docker run -i --rm --name my-running-script -v "$PWD":/app -w /app php:8.1-cli'
convention.ecs.config: ecs.php
convention.git_blacklist.keywords: [ 'die\\(', 'dd\\(', 'dump\\(', 'var_dump\\(', 'exit;' ]
convention.git_branch_name.blacklist: [ master, main ]
convention.git_branch_name.whitelist: [ ]
convention.doctrine_schema_check.command: './bin/console doctrine:schema:validate --skip-sync'
convention.lint_twig.command: './bin/console lint:twig templates'
convention.lint_yaml.command: './bin/console lint:yaml --parse-tags src config tests translations'
convention.phpstan.config: phpstan.neon

grumphp:

Expand All @@ -27,7 +29,7 @@ grumphp:
triggered_by: [ xml, yaml, php ]
metadata: { task: shell }
ecs:
config: ecs.php
config: '%convention.ecs.config%'
git_blacklist:
keywords: '%convention.git_blacklist.keywords%'
git_branch_name:
Expand All @@ -45,9 +47,9 @@ grumphp:
triggered_by: [ yaml, yml ]
metadata: { task: shell }
phpstan:
configuration: phpstan.neon
configuration: '%convention.phpstan.config%'
phpstan_all:
configuration: phpstan.neon
configuration: '%convention.phpstan.config%'
use_grumphp_paths: false
metadata: { task: phpstan }
phpunit:
Expand Down

0 comments on commit fcc2b38

Please sign in to comment.