mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-23 15:56:47 +00:00
Add phan configuration
Change-Id: I5d1c03978d6d018ea3e6fc0927598b5a2c931b85
This commit is contained in:
parent
e735c9bcff
commit
b24f75a2ef
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ docs/
|
|||
node_modules/
|
||||
vendor/
|
||||
/composer.lock
|
||||
tests/phan/issues
|
||||
|
|
|
@ -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
19
tests/phan/config.php
Normal 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;
|
Loading…
Reference in a new issue