1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php
$cfg = require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
// These are too spammy for now. TODO enable
$cfg['null_casts_as_any_type'] = true;
$cfg['scalar_implicit_cast'] = true;
$cfg['file_list'] = array_merge(
$cfg['file_list'],
[
'Message.php',
'MessageCollection.php',
'MessageGroupConfigurationParser.php',
'MessageGroups.php',
'MetaYamlSchemaExtender.php',
'TranslateEditAddons.php',
'TranslateHooks.php',
'TranslateUtils.php',
]
);
$cfg['directory_list'] = array_merge(
$cfg['directory_list'],
[
'api',
'ffs',
'messagegroups',
'scripts',
'specials',
'src',
'stringmangler',
'tag',
'ttmserver',
'utils',
'webservices',
'../../extensions/AbuseFilter',
'../../extensions/AdminLinks',
'../../extensions/cldr',
'../../extensions/Elastica',
'../../extensions/TranslationNotifications',
]
);
$cfg['exclude_analysis_directory_list'] = array_merge(
$cfg['exclude_analysis_directory_list'],
[
'../../extensions/AbuseFilter',
'../../extensions/AdminLinks',
'../../extensions/cldr',
'../../extensions/Elastica',
'../../extensions/TranslationNotifications',
]
);
return $cfg;
|