Skip to content

Commit af2459a

Browse files
author
Rodrigo García
committed
custom phpstan analyzer tested on 0.12+ phpstan
1 parent d4a7b0d commit af2459a

File tree

6 files changed

+2904
-0
lines changed

6 files changed

+2904
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
/vendor/
3+
/build/

.phpqa.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
phpqa:
2+
analyzedDirs: ./
3+
buildDir: build/
4+
ignoredDirs: vendor
5+
ignoredFiles: ""
6+
report: true
7+
execution: parallel
8+
output: file
9+
tools: phpstan
10+
verbose: true
11+
extensions:
12+
- php
13+
14+
phpstan:
15+
level: 0
16+
# https://github.com/phpstan/phpstan#configuration
17+
# standard: tests/.travis/phpstan.neon
18+
19+
report:
20+
phpstan: build/phpstan.xml
21+
22+
tool:
23+
phpstan: Hrodic\PHPQAPHPStanAnalyzer\PHPStan

composer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "hrodic/phpqa-phpstan-analyzer",
3+
"description": "PHPStan 0.11+ analyzer for PHPQA",
4+
"type": "library",
5+
"require-dev": {
6+
"edgedesign/phpqa": "^1.23",
7+
"nette/neon": "^3.1",
8+
"phpstan/phpstan": "^0.12.31"
9+
},
10+
"license": "MIT",
11+
"minimum-stability": "stable",
12+
"autoload": {
13+
"psr-4": {
14+
"Hrodic\\PHPQAPHPStanAnalyzer\\": "src"
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)