Skip to content

Commit

Permalink
Fix CS config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 10, 2023
1 parent 0636812 commit a1a10d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"@test",
"@cs-check"
],
"cs-check": "phpcs --parallel=16 -p src/ tests/",
"cs-fix": "phpcbf --parallel=16 -p src/ tests/",
"stan": "phpstan analyse src/ && psalm.phar",
"cs-check": "phpcs --parallel=16",
"cs-fix": "phpcbf --parallel=16",
"stan": "phpstan analyse && psalm.phar",
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^1.7 psalm/phar:~4.27.0 && mv composer.backup composer.json",
"test": "phpunit",
"test-coverage": "phpunit --coverage-clover=clover.xml"
Expand Down
6 changes: 6 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?xml version="1.0"?>
<ruleset name="CakePHP Bake">
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" />
<arg value="nps"/>

<file>src/</file>
<file>tests/</file>

<rule ref="CakePHP" />

<exclude-pattern>*/comparisons/*</exclude-pattern>
<exclude-pattern>/tests/test_app/tests/</exclude-pattern>
<exclude-pattern>/tests/test_app/Plugin/TestBake/</exclude-pattern>
</ruleset>

0 comments on commit a1a10d8

Please sign in to comment.