Skip to content

Commit e15b316

Browse files
committed
Fix up CS config.
1 parent 1221ff3 commit e15b316

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
php-version: [ '8.1', '8.2' ]
21+
php-version: [ '8.1', '8.3' ]
2222
dependencies: ['highest']
2323
include:
2424
- php-version: '8.1'
2525
dependencies: 'lowest'
26-
- php-version: '8.2'
26+
- php-version: '8.3'
2727
dependencies: 'highest'
2828

2929
steps:
@@ -78,12 +78,12 @@ jobs:
7878

7979
- name: Run phpcs
8080
if: always()
81-
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
81+
run: vendor/bin/phpcs --report=checkstyle | cs2pr
8282

8383
- name: Run psalm
8484
if: always()
8585
run: tools/psalm --output-format=github
8686

8787
- name: Run phpstan
8888
if: always()
89-
run: tools/phpstan analyse --error-format=github
89+
run: tools/phpstan analyse --error-format=github

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
},
2020
"scripts": {
2121
"test": "phpunit",
22-
"cs-check": "phpcs --colors -p src/ tests/",
23-
"cs-fix": "phpcbf --colors -p src/ tests/",
22+
"cs-check": "phpcs --colors -p",
23+
"cs-fix": "phpcbf --colors -p",
2424
"phpstan": "tools/phpstan analyse",
2525
"psalm": "tools/psalm --show-info=false",
2626
"stan": [

phpcs.xml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<?xml version="1.0"?>
22
<ruleset name="CakePHP Sentry">
3-
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer" />
3+
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer"/>
44

5-
<rule ref="CakePHP" />
6-
<exclude-pattern>/tests/test_app/*</exclude-pattern>
5+
<file>config/</file>
6+
<file>src/</file>
7+
<file>tests/</file>
8+
9+
<exclude-pattern>/tests/test_app/*</exclude-pattern>
10+
11+
<rule ref="CakePHP"/>
712
</ruleset>

0 commit comments

Comments
 (0)