Skip to content
Snippets Groups Projects
Commit 004e5fae authored by jurgenhaas's avatar jurgenhaas
Browse files

Add support for stylelint

parent 8dd46feb
No related branches found
No related tags found
1 merge request!12Merging develop into main
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment