Skip to content

Commit 51c746f

Browse files
committed
Enforce code style
1 parent 3b7ba45 commit 51c746f

File tree

14 files changed

+370
-30
lines changed

14 files changed

+370
-30
lines changed

.github/workflows/checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ env:
77
COMPOSER_NO_INTERACTION: "1"
88

99
jobs:
10+
format:
11+
name: Code style
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.4'
21+
coverage: none
22+
23+
- run: composer install --ansi --no-progress --prefer-dist
24+
25+
- name: Run PHP_Codesniffer
26+
run: vendor/bin/phpcs
27+
1028
static_analysis:
1129
name: Static analysis
1230

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
}
1212
},
1313
"config": {
14+
"allow-plugins": {
15+
"dealerdirect/phpcodesniffer-composer-installer": false
16+
},
1417
"sort-packages": true
1518
},
1619
"description": "Library for tokenization, abstract syntax tree parsing & interpretation",
@@ -37,7 +40,8 @@
3740
"phpstan/phpstan": "^2.1.12",
3841
"phpstan/phpstan-strict-rules": "^2.0.4",
3942
"spaze/phpstan-disallowed-calls": "^4.5.0",
40-
"tracy/tracy": "^2.10.9"
43+
"tracy/tracy": "^2.10.9",
44+
"vojtech-dobes/php-codestyle": "~0.2.0"
4145
},
4246
"scripts": {
4347
"phpstan": "phpstan analyse",

composer.lock

Lines changed: 310 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)