Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3130b67

Browse files
Enforce code style
1 parent c6b687f commit 3130b67

File tree

6 files changed

+344
-3
lines changed

6 files changed

+344
-3
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
}
1717
},
1818
"config": {
19+
"allow-plugins": {
20+
"dealerdirect/phpcodesniffer-composer-installer": false
21+
},
1922
"sort-packages": true
2023
},
2124
"keywords": [
@@ -45,11 +48,13 @@
4548
"phpunit/phpunit": "^12.1",
4649
"spaze/phpstan-disallowed-calls": "^4.5.0",
4750
"tracy/tracy": "^2.10.9",
51+
"vojtech-dobes/php-codestyle": "~0.2.0",
4852
"vojtech-dobes/php-grammar-processing": "dev-master@dev",
4953
"vojtech-dobes/php-graphql-server": "dev-master@dev",
5054
"vojtech-dobes/phpstan-php-graphql-server": "dev-master@dev"
5155
},
5256
"scripts": {
57+
"fmt": "phpcbf",
5358
"lint": "parallel-lint src tests",
5459
"phpstan": "phpstan analyse --memory-limit 256M",
5560
"test": "composer dump-autoload && phpunit tests"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /