From 6920b0792213239ab9967483f1d5a16c27dcdbfc Mon Sep 17 00:00:00 2001 From: Daniel Speicher <daniel.speicher@lakedrops.com> Date: Thu, 30 May 2024 15:07:45 +0200 Subject: [PATCH] Document Drupal Development Env: composer/plugin/drupal-development-environment#1 --- .../plugin/drupal-dev-environment/index.md | 2 +- docs/dev_tools/test.md | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/composer/plugin/drupal-dev-environment/index.md b/docs/composer/plugin/drupal-dev-environment/index.md index 0adf67a..d70d140 100644 --- a/docs/composer/plugin/drupal-dev-environment/index.md +++ b/docs/composer/plugin/drupal-dev-environment/index.md @@ -12,7 +12,7 @@ This composer plugin builds all necessary structures of a Drupal project for dev It provides a massive amount of testing tools, which can be executed out of the box using [Ahoy](../../plugin/ahoy/index.md): -- [Dependency Analysis](../../../dev_tools/test.md#php-code-sniffer) +- [Dependency Analysis](../../../dev_tools/test.md#drupal-dependency-analysis) - [PHP Unit](../../../dev_tools/test.md#unitkernelfunctional-testing) - [PHP Code Sniffer](../../../dev_tools/test.md#php-code-sniffer) - [PHP PHPStan](../../../dev_tools/test.md#php-code-sniffer) diff --git a/docs/dev_tools/test.md b/docs/dev_tools/test.md index 97598a6..5ed81a7 100644 --- a/docs/dev_tools/test.md +++ b/docs/dev_tools/test.md @@ -14,6 +14,30 @@ code analysis to unit testing. You also have to set up your environment with the tool [l3d](../docker/l3d/index.md). The composer plugin [Drupal Development Environment](../composer/plugin/drupal-dev-environment/index.md) does all the setup for you. +## Drupal Dependency Analysis + +This tools provides a very useful functionality. You can check, if there are new versions of a module. We have the following +categories: + +- Direct dependencies required in composer.json +- Transitive dependencies not required in composer.json + +Usage: + +```l3d +a test outdated +``` + +Note: **This can take a while depending on your installation.** + +Provides an output something like this: + +```l3d +Transitive dependencies not required in composer.json: +drupal/blazy 2.16.0 2.27.0 Provides.. +``` + + ## Static Code Analysis We have several tools to perform static code analysis. -- GitLab