Skip to content

Commit

Permalink
Ignore breaking file in Phan config
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z committed Jun 12, 2024
1 parent f8a7f2d commit 47bf116
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions projects/packages/jetpack-mu-wpcom/.phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
return make_phan_config(
dirname( __DIR__ ),
array(
'+stubs' => array( 'full-site-editing', 'photon-opencv', 'wpcom' ),
'parse_file_list' => array(
'+stubs' => array( 'full-site-editing', 'photon-opencv', 'wpcom' ),
'parse_file_list' => array(
// Reference files to handle code checking for stuff from Jetpack-the-plugin or other in-monorepo plugins.
// Wherever feasible we should really clean up this sort of thing instead of adding stuff here.
//
Expand All @@ -27,5 +27,10 @@
__DIR__ . '/../../../plugins/jetpack/class-jetpack-stats-dashboard-widget.php', // class Jetpack_Stats_Dashboard_Widget
__DIR__ . '/../../../plugins/jetpack/modules/masterbar/nudges/bootstrap.php', // function Automattic\Jetpack\Dashboard_Customizations\register_css_nudge_control phpcs:ignore Squiz.PHP.CommentedOutCode.Found
),
'exclude_analysis_directory_list' => array(
// This file breaks analysis, Phan gets lost recursing in trying to figure out some types.
// @todo Add type declarations so Phan won't have to do it itself. Or update to a modern less lib.
'src/features/custom-css/custom-css/preprocessors/lessc.inc.php',
),
)
);

0 comments on commit 47bf116

Please sign in to comment.