-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.php
51 lines (40 loc) · 1.19 KB
/
config.php
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
<?php
declare( strict_types = 1 );
return [
'target_php_version' => null,
'directory_list' => [
'src',
'vendor',
],
'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
'exclude_analysis_directory_list' => [
'vendor/',
],
'suppress_issue_types' => [
// PHPCS does this already and without false positives.
'PhanUnreferencedUseNormal',
'SecurityCheck-LikelyFalsePositive',
],
'enable_extended_internal_return_type_plugins' => true,
'generic_types_enabled' => true,
'null_casts_as_any_type' => false,
'scalar_implicit_cast' => false,
// Note: dead code detection has false positives with symfony magic methods
'redundant_condition_detection' => true,
'quick_mode' => false,
'plugins' => [
'UnreachableCodePlugin',
'PregRegexCheckerPlugin',
'UnusedSuppressionPlugin',
'DuplicateArrayKeyPlugin',
'DuplicateExpressionPlugin',
'RedundantAssignmentPlugin',
'StrictLiteralComparisonPlugin',
'DollarDollarPlugin',
'LoopVariableReusePlugin',
'StrictComparisonPlugin',
'SimplifyExpressionPlugin',
'vendor/drenso/phan-extensions/Plugin/Annotation/SymfonyAnnotationPlugin.php',
'vendor/mediawiki/phan-taint-check-plugin/GenericSecurityCheckPlugin.php',
],
];