mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-27 15:30:48 +00:00
Upgrade TitleBlacklist extension to use newer version of phan
Bug: T216946 Change-Id: I70762433e25706487864c86980daa797d6c60f8d
This commit is contained in:
parent
8a25c63a25
commit
3d957b51aa
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,4 +22,3 @@ project.index
|
||||||
## Sublime
|
## Sublime
|
||||||
sublime-*
|
sublime-*
|
||||||
sftp-config.json
|
sftp-config.json
|
||||||
/tests/phan/issues
|
|
||||||
|
|
19
.phan/config.php
Normal file
19
.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/AntiSpoof',
|
||||||
|
'../../extensions/Scribunto',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
$cfg['exclude_analysis_directory_list'] = array_merge(
|
||||||
|
$cfg['exclude_analysis_directory_list'],
|
||||||
|
[
|
||||||
|
'../../extensions/AntiSpoof',
|
||||||
|
'../../extensions/Scribunto',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
return $cfg;
|
|
@ -4,7 +4,7 @@
|
||||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||||
"mediawiki/minus-x": "0.3.1",
|
"mediawiki/minus-x": "0.3.1",
|
||||||
"mediawiki/mediawiki-phan-config": "0.3.0"
|
"mediawiki/mediawiki-phan-config": "0.4.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fix": [
|
"fix": [
|
||||||
|
|
|
@ -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;
|
|
Loading…
Reference in a new issue