phan: Don't analyze .inc files, we don't use them now

Also remove two vendor/* entries from exclude_file_list; besides the
fact that one is a .inc file, both are part of dev dependencies, which
are ignored after 3253cbf8d5.

Bug: T184782
Change-Id: I0e0fac176b1c085e106533bcf3e8e3dcc75cd65a
This commit is contained in:
Kevin Israel 2022-12-04 03:22:11 -05:00
parent 8418414ec0
commit 4ac4b79e22

View file

@ -43,10 +43,6 @@ $cfg['file_list'] = array_merge(
$cfg['exclude_file_list'] = array_merge(
$cfg['exclude_file_list'],
[
// This file has invalid PHP syntax
'vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc',
// This file implements a polyfill for the JsonUnserializable class
'vendor/php-parallel-lint/php-parallel-lint/src/polyfill.php',
// Avoid microsoft/tolerant-php-parser dependency
'maintenance/findDeprecated.php',
'maintenance/CodeCleanerGlobalsPass.php',
@ -69,11 +65,6 @@ if ( PHP_VERSION_ID >= 80000 ) {
);
}
$cfg['analyzed_file_extensions'] = array_merge(
$cfg['analyzed_file_extensions'] ?? [ 'php' ],
[ 'inc' ]
);
$cfg['autoload_internal_extension_signatures'] = [
'excimer' => '.phan/internal_stubs/excimer.php',
'imagick' => '.phan/internal_stubs/imagick.phan_php',