Skip to content

Commit

Permalink
Fix tests and phan.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymitr committed May 7, 2024
1 parent a0e12b9 commit 0d2c36c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions projects/plugins/jetpack/.phan/baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
*/
return [
// # Issue statistics:
// PhanTypeMismatchArgument : 540+ occurrences
// PhanTypeMismatchArgument : 530+ occurrences
// PhanTypeMismatchArgumentProbablyReal : 300+ occurrences
// PhanPluginDuplicateConditionalNullCoalescing : 280+ occurrences
// PhanUndeclaredMethod : 260+ occurrences
// PhanNoopNew : 200+ occurrences
// PhanTypeMismatchReturn : 160+ occurrences
// PhanTypeMismatchReturnProbablyReal : 150+ occurrences
// PhanDeprecatedFunction : 130+ occurrences
// PhanDeprecatedFunction : 120+ occurrences
// PhanTypePossiblyInvalidDimOffset : 110+ occurrences
// PhanTypeArraySuspiciousNullable : 95+ occurrences
// PhanRedundantCondition : 70+ occurrences
Expand Down Expand Up @@ -590,8 +590,6 @@
'tests/php/media/test-class.jetpack-media-extractor.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/media/test-class.jetpack-post-images.php' => ['PhanTypeMismatchArgumentProbablyReal'],
'tests/php/modules/geo-location/test_class.jetpack-geo-location.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
'tests/php/modules/google-analytics/test-class.google-analytics.php' => ['PhanDeprecatedFunction'],
'tests/php/modules/google-analytics/test-class.jetpack-google-amp-analytics.php' => ['PhanTypeMismatchArgument', 'PhanUndeclaredMethod'],
'tests/php/modules/masterbar/test-class-admin-color-schemes.php' => ['PhanNoopNew'],
'tests/php/modules/masterbar/test-class-admin-menu.php' => ['PhanTypeArraySuspiciousNull', 'PhanTypeArraySuspiciousNullable', 'PhanTypeInvalidDimOffset', 'PhanTypePossiblyInvalidDimOffset'],
'tests/php/modules/masterbar/test-class-atomic-admin-menu.php' => ['PhanRedefineFunction', 'PhanTypeArraySuspiciousNull', 'PhanTypeInvalidDimOffset'],
Expand Down
3 changes: 0 additions & 3 deletions projects/plugins/jetpack/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@
<testsuite name="geo-location">
<directory prefix="test_" suffix=".php">tests/php/modules/geo-location</directory>
</testsuite>
<testsuite name="google-analytics">
<directory prefix="test" suffix=".php">tests/php/modules/google-analytics</directory>
</testsuite>
<testsuite name="masterbar">
<directory prefix="test" suffix=".php">tests/php/modules/masterbar</directory>
</testsuite>
Expand Down

0 comments on commit 0d2c36c

Please sign in to comment.