Skip to content

Commit

Permalink
Merge pull request #918 from cakephp/ADmad-patch-1
Browse files Browse the repository at this point in the history
Fix CS errors display on PRs
  • Loading branch information
ADmad committed Apr 26, 2023
2 parents 2d3b2fd + 996c8c3 commit a961f76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -168,7 +168,7 @@ jobs:
run: composer stan-setup

- name: Run phpcs
run: vendor/bin/phpcs
run: vendor/bin/phpcs --report=checkstyle | cs2pr

- name: Run psalm
if: success() || failure()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -50,8 +50,8 @@
"@test",
"@cs-check"
],
"cs-check": "phpcs --parallel=16",
"cs-fix": "phpcbf --parallel=16",
"cs-check": "phpcs -p --parallel=16",
"cs-fix": "phpcbf -p --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",
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<ruleset name="CakePHP Bake">
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" />
<arg value="nps"/>
<arg value="ns"/>

<file>src/</file>
<file>tests/</file>
Expand Down

0 comments on commit a961f76

Please sign in to comment.