From 004e5faec53a68d77a003a7ddfff197e21fcea35 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Mon, 30 Oct 2023 13:27:41 +0100 Subject: [PATCH] Add support for stylelint --- ahoy.test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ahoy.test.yml b/ahoy.test.yml index 1189838..002e0ae 100644 --- a/ahoy.test.yml +++ b/ahoy.test.yml @@ -74,3 +74,13 @@ commands: if [[ -f tests/junit/${module}.xml ]]; then JUNIT=--junit=tests/junit/${module}.xml; fi ahoy d4d exec vendor/bin/phpmetrics --report-html=tests/metrics/$module $JUNIT web/modules/contrib/$module $@ usage: PHP Metrics by module + stylelintprepare: + cmd: | + /usr/local/bin/node_cmd yarn --cwd web/core add stylelint-junit-formatter + usage: Prepare environment for style linter + stylelintmodule: + cmd: | + module=$1 + shift + /usr/local/bin/node_cmd yarn --silent --cwd web/core stylelint --formatter verbose --config ./.stylelintrc.json "../modules/contrib/${module}/**/*.css" --color + usage: Stylelint tests by module -- GitLab