Skip to content

Commit

Permalink
feat(lint): add phpqa with phpstan and psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
elvishp2006 committed May 8, 2020
1 parent 984e8ca commit 75bbb66
Show file tree
Hide file tree
Showing 8 changed files with 4,231 additions and 1,119 deletions.
11 changes: 11 additions & 0 deletions .phpqa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
phpqa:
output: cli
tools: phpcs:0,phpcpd:0,phpstan:0
ignoredDirs: node_modules,vendor,tests

phpcs:
standard: phpcs.xml.dist

phpcpd:
minLines: 5
minTokens: 70
14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"license": "GPL-2.0-only",
"require": {
"cedaro/wp-plugin": "0.4.0",
"dusank/knapsack": "10.0.0",
"php": ">=7.2",
"psr/log": "1.1.3"
},
Expand All @@ -15,7 +14,13 @@
"phpcompatibility/phpcompatibility-wp": "2.1.0",
"phpunit/phpunit": "9.1.4",
"squizlabs/php_codesniffer": "3.5.5",
"wp-coding-standards/wpcs": "2.2.1"
"wp-coding-standards/wpcs": "2.2.1",
"slevomat/coding-standard": "^6.3",
"edgedesign/phpqa": "^1.23",
"php-stubs/wordpress-stubs": "^5.4",
"szepeviktor/phpstan-wordpress": "^0.6.0",
"nette/neon": "^3.1",
"vimeo/psalm": "^3.11"
},
"autoload": {
"psr-4": {
Expand All @@ -31,7 +36,10 @@
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"lint": "phpcs",
"lint": [
"phpqa",
"psalm"
],
"lint:fix": "phpcbf",
"test": "phpunit"
}
Expand Down
Loading

0 comments on commit 75bbb66

Please sign in to comment.