Skip to content

Commit aa793ca

Browse files
committed
Add phpcs to composer and use composer lint
1 parent 658467f commit aa793ca

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
run: echo "::add-matcher::$(pwd)/.github/checkstyle-problem-matcher.json"
3434

3535
- name: Run style check
36-
run: composer phpcs -- --report=checkstyle
36+
run: composer lint

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"lint": "./vendor/bin/phpcs --standard=.phpcs.xml.dist",
3434
"format": "./vendor/bin/phpcbf --standard=.phpcs.xml.dist",
3535
"psalm": "psalm",
36+
"phpcs": "./vendor/bin/phpcs",
3637
"test": "./bin/test.sh --php 8.2 --wp 6.5"
3738
}
3839
}

0 commit comments

Comments
 (0)