Skip to content

Commit 5774759

Browse files
committed
Added overtrue/phplint as development composer package.
1 parent 503d0f7 commit 5774759

File tree

3 files changed

+587
-11
lines changed

3 files changed

+587
-11
lines changed

.phplint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
path: ./
2+
jobs: 10
3+
cache: build/phplint.cache
4+
extensions:
5+
- php
6+
exclude:
7+
- vendor

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"phpcompatibility/phpcompatibility-wp": "^2"
1313
},
1414
"require-dev": {
15-
"wp-coding-standards/wpcs": "^1"
15+
"wp-coding-standards/wpcs": "^1",
16+
"overtrue/phplint": "^1.2"
1617
},
1718
"scripts": {
1819
"post-update-cmd": [
@@ -22,6 +23,7 @@
2223
"cd php52; composer install; cd .."
2324
],
2425
"phpcs": "phpcs --standard=src/ruleset-wordpress.xml wpengine-phpcompat.php load-files.php src/*.php",
25-
"phpcs:fix": "phpcbf --standard=src/ruleset-wordpress.xml wpengine-phpcompat.php load-files.php src/*.php"
26+
"phpcs:fix": "phpcbf --standard=src/ruleset-wordpress.xml wpengine-phpcompat.php load-files.php src/*.php",
27+
"lint": "phplint --no-cache --exclude=vendor"
2628
}
2729
}

0 commit comments

Comments
 (0)