Skip to content

Commit

Permalink
Exclude WP itself from phpstan checks (and codescanning)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed Aug 31, 2023
1 parent eec5280 commit fa18669
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ parameters:
- inc/
- plugin.php
excludePaths:
analyseAndScan:
# Prevent phpstan from multiple definitions of the same things,
# because we already use phpstan/wordpress-stubs
- wordpress/
analyse:
- vendor/
# "/wp-content/" is created during composer install,
Expand Down

0 comments on commit fa18669

Please sign in to comment.