Skip to content

Commit 257a3c8

Browse files
authored
Merge pull request #96 from liip/fix-php-linting
Fix php linting
2 parents 991c2f5 + 04b8d3b commit 257a3c8

3 files changed

Lines changed: 182 additions & 48 deletions

File tree

.github/workflows/lint-test-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
- name: Run linter
2525
run: npm run lint
2626

27-
#- name: Run PHP linter
28-
# run: |
29-
# npm run wp-env start
30-
# npm run lint:php
27+
- name: Run PHP linter
28+
run: |
29+
npm run wp-env start
30+
npm run lint:php
3131
3232
tests:
3333
name: Tests

composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@
2525
},
2626
"require-dev": {
2727
"squizlabs/php_codesniffer": "^3.6",
28-
"wp-coding-standards/wpcs": "^2.3",
28+
"wp-coding-standards/wpcs": "dev-develop",
2929
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
3030
"wp-phpunit/wp-phpunit": "^5.8",
3131
"yoast/phpunit-polyfills": "^1.0"
3232
},
33+
"minimum-stability": "dev",
34+
"prefer-stable": true,
3335
"scripts": {
3436
"lint": "phpcs --standard=phpcs.xml"
37+
},
38+
"config": {
39+
"allow-plugins": {
40+
"dealerdirect/phpcodesniffer-composer-installer": true
41+
}
3542
}
3643
}

0 commit comments

Comments
 (0)