Skip to content

Commit

Permalink
TASK: add phpcs config
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Aug 28, 2023
1 parent 82363b1 commit b22064b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"scripts": {
"test-phpstan": "phpstan",
"test-cs": "phpcs --colors --standard=PSR12 --exclude=Generic.Files.LineLength src",
"test-cs:fix": "phpcbf --colors --standard=PSR12 --exclude=Generic.Files.LineLength src",
"test-cs": "phpcs --colors src",
"test-cs:fix": "phpcbf --colors src",
"test-unit": "phpunit tests/Unit",
"test-integration": "phpunit tests/Integration",
"test": [
Expand Down
8 changes: 5 additions & 3 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" ?>
<ruleset name="PSR2">
<description>The PSR2 coding standard.</description>
<rule ref="PSR2" />
</ruleset>
<description>The PSR2 coding standard – without line length limitation</description>
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
</ruleset>

0 comments on commit b22064b

Please sign in to comment.