From 4a5a07d1e5b1921f617886305f57672b3e26d344 Mon Sep 17 00:00:00 2001 From: Coen Jacobs Date: Thu, 19 Sep 2024 11:30:39 +0200 Subject: [PATCH] Enforce docblocks for complex methods by set thresholds --- composer.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2170597c..140cc2fb 100644 --- a/composer.json +++ b/composer.json @@ -41,14 +41,16 @@ "symfony/finder": "^5.4", "dealerdirect/phpcodesniffer-composer-installer": "^1.0", "phpcompatibility/php-compatibility": "dev-develop", - "phpmd/phpmd": "^2.15" + "phpmd/phpmd": "^2.15", + "niels-de-blaauw/php-doc-check": "^0.4.0" }, "scripts": { "test": [ "@test:lint", "@test:phpunit", "@test:phpstan", - "@test:phpmd" + "@test:phpmd", + "@test:docs" ], "test:lint": [ "composer validate", @@ -62,6 +64,9 @@ ], "test:phpmd": [ "./vendor/bin/phpmd src ansi phpmd.xml.dist" + ], + "test:docs": [ + "./vendor/bin/php-doc-check src" ] } }