Upgrade TitleBlacklist extension to use newer version of phan

Bug: T216946
Change-Id: I70762433e25706487864c86980daa797d6c60f8d
This commit is contained in:
zoranzoki21 2019-02-24 17:26:20 +01:00 committed by Zoranzoki21
parent 8a25c63a25
commit 3d957b51aa
4 changed files with 20 additions and 21 deletions

1
.gitignore vendored
View file

@ -22,4 +22,3 @@ project.index
## Sublime
sublime-*
sftp-config.json
/tests/phan/issues

19
.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/AntiSpoof',
'../../extensions/Scribunto',
]
);
$cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'],
[
'../../extensions/AntiSpoof',
'../../extensions/Scribunto',
]
);
return $cfg;

View file

@ -4,7 +4,7 @@
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "24.0.0",
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.3.0"
"mediawiki/mediawiki-phan-config": "0.4.0"
},
"scripts": {
"fix": [

View file

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