Add phan configuration

Change-Id: I5d1c03978d6d018ea3e6fc0927598b5a2c931b85
This commit is contained in:
Kunal Mehta 2018-04-14 01:03:51 -07:00
parent e735c9bcff
commit b24f75a2ef
3 changed files with 22 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ docs/
node_modules/
vendor/
/composer.lock
tests/phan/issues

View file

@ -3,7 +3,8 @@
"jakub-onderka/php-parallel-lint": "1.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "18.0.0",
"mediawiki/minus-x": "0.3.1"
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.2.0"
},
"scripts": {
"fix": [

19
tests/phan/config.php Normal file
View file

@ -0,0 +1,19 @@
<?php
$cfg = require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
$cfg['directory_list'] = array_merge(
$cfg['directory_list'],
[
'./../../extensions/BetaFeatures',
]
);
$cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'],
[
'./../../extensions/BetaFeatures',
]
);
return $cfg;