From 08d1e0745deae6205a441b7b34a33862ab05c174 Mon Sep 17 00:00:00 2001 From: Martina Scholz <64533137+LadySolveig@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:42:39 +0100 Subject: [PATCH] Update codestyle.md --- versioned_docs/version-5.2/get-started/codestyle.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/versioned_docs/version-5.2/get-started/codestyle.md b/versioned_docs/version-5.2/get-started/codestyle.md index bc7780c3..16457248 100644 --- a/versioned_docs/version-5.2/get-started/codestyle.md +++ b/versioned_docs/version-5.2/get-started/codestyle.md @@ -19,7 +19,15 @@ To run the code sniffer/fixer you need to start a terminal, navigate to your Joo ### Checking for code style violations +To facilitate this process, we have prepared a shortcut script command. + +- ```composer run phpcs``` +- ```composer run csfixer``` + +For reference and to adjust to other needs, here the complete command: + ```./libraries/vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .``` +```./libraries/vendor/bin/php-cs-fixer fix -vvv --dry-run --diff``` This will run the code style check for the whole Joomla! installation, including your extensions, when installed in Joomla!