diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 23f0a3741954f..63534879322cc 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -55,6 +55,9 @@ ->notPath('/layouts/') ->notPath('/cassiopeia/') ->notPath('/atum/') + // Ingore cache and logs + ->notPath('/cache/') + ->notPath('/logs/') // Ignore psr12 scripts because they contain invalid syntax ->notPath('/psr12/') ->notName('github_rebase.php'); diff --git a/composer.json b/composer.json index b0689ad9e7298..7ea3016a07937 100644 --- a/composer.json +++ b/composer.json @@ -135,6 +135,8 @@ "scripts": { "post-install-cmd": [ "php build/update_fido_cache.php" - ] + ], + "phpcs": "./libraries/vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .", + "csfixer": "./libraries/vendor/bin/php-cs-fixer fix -vvv --dry-run --diff" } }