Skip to content

Commit

Permalink
[TASK] Streamline code style checker rules
Browse files Browse the repository at this point in the history
  • Loading branch information
astehlik committed Dec 20, 2023
1 parent 64d4236 commit 42e429e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
php-version: "${{ env.MAIN_PHP_VERSION }}"
- run: |
bash .Build/bin/t3_check_codestyle.sh PSRHtml5mediakit
bash .Build/bin/t3_check_codestyle.sh PerCodeStyleT3Ext
"check-codestyle-php-cs-fixer":
name: "PHP CS Fixer check"
Expand Down
2 changes: 1 addition & 1 deletion Build/php-cs-fixer/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
exit('This script supports command line usage only. Please check your command.');
}

$rules = include __DIR__ . '/../../.Build/vendor/de-swebhosting/php-codestyle/PhpCsFixer/Psr12DefaultRules.php';
$rules = include __DIR__ . '/../../.Build/vendor/de-swebhosting/php-codestyle/PhpCsFixer/PerCsDefaultRules.php';

return (new Config())
->setFinder(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<ruleset name="PSRHtml5mediakit">
<ruleset name="PerCodeStyleT3Ext">
<description>Based on PSRDefault. Adjust only if REALLY neccessary!</description>
<rule ref="PSRDefault"/>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typo3/cms-frontend": "*"
},
"require-dev": {
"de-swebhosting/php-codestyle": "^5.0",
"de-swebhosting/php-codestyle": "^5.1",
"de-swebhosting/typo3-extension-buildtools": "dev-TYPO3_12",
"ergebnis/composer-normalize": "^2.28",
"friendsofphp/php-cs-fixer": "^3.14",
Expand Down

0 comments on commit 42e429e

Please sign in to comment.