From cc3fef59b79561050c348cdda05f473d190667f0 Mon Sep 17 00:00:00 2001 From: Daniel Speicher <daniel.speicher@lakedrops.com> Date: Fri, 31 May 2024 07:07:06 +0200 Subject: [PATCH] Document Drupal Development Env: composer/plugin/drupal-development-environment#1 --- .../plugin/drupal-dev-environment/index.md | 4 ++-- docs/dev_tools/test.md | 24 ++++++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/docs/composer/plugin/drupal-dev-environment/index.md b/docs/composer/plugin/drupal-dev-environment/index.md index 5fea776..a0ac6a2 100644 --- a/docs/composer/plugin/drupal-dev-environment/index.md +++ b/docs/composer/plugin/drupal-dev-environment/index.md @@ -20,5 +20,5 @@ It provides a massive amount of testing tools, which can be executed out of the - [PHP LOC](../../../dev_tools/test.md#php-loc) - [PHP Mess Detection](../../../dev_tools/test.md#php-mess-detection) - [PHP Metrics](../../../dev_tools/test.md#php-metrics) -- [PHP Stylelint](../../../dev_tools/test.md#php-code-sniffer) -- [Eslint](../../../dev_tools/test.md#php-code-sniffer) +- [Stylelint](../../../dev_tools/test.md#stylelint) +- [Eslint](../../../dev_tools/test.md#es-lint) diff --git a/docs/dev_tools/test.md b/docs/dev_tools/test.md index 2e387e3..3008d3c 100644 --- a/docs/dev_tools/test.md +++ b/docs/dev_tools/test.md @@ -46,10 +46,10 @@ We have several tools to perform static code analysis. - [PHP PHPStan](#php-stan) - [PHP Lint](#php-lint) - [PHP LOC](#php-loc) -- [PHP Mess Detection](../../../dev_tools/test.md#php-mess-detection) +- [PHP Mess Detection](#php-mess-detection) - [PHP Metrics](#php-metrics) -- [PHP Stylelint](../../../dev_tools/test.md#php-code-sniffer) -- [Eslint](../../../dev_tools/test.md#php-code-sniffer) +- [Stylelint](#stylelint) +- [Eslint](#es-lint) ### PHP Code Sniffer @@ -205,6 +205,24 @@ If you want to analyse a custom module, just do the following: a test phpmetricsmodule ../custom/<custom_module> ``` +### Stylelint + +With `Stylelint` you can test and analyse `css` file in your module. + +You first have to install and set up the toll with the following command: + +```style +a test stylelintprepare +``` + +Now all you need is installed and set up. Execute the following command to run the test: + +```style +a test stylelintmodule <contrib_module> +``` + +### ES Lint + ## Unit/Kernel/Functional Testing To execute the tests, you can use a single command: -- GitLab