Skip to content

Commit cd1fe30

Browse files
committed
chore(phpcs): exclude .wp-env/ directory from linting
Exclude the `.wp-env/` directory to prevent PHP Code Sniffer from analyzing generated or third-party WordPress core and plugin files. This avoids irrelevant warnings and errors, keeping the linting focused on project-specific code.
1 parent f4643dc commit cd1fe30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎phpcs.xml.dist‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<exclude-pattern>dist/</exclude-pattern>
1818
<exclude-pattern>config/</exclude-pattern>
1919
<exclude-pattern>node_modules/</exclude-pattern>
20+
<exclude-pattern>.wp-env/</exclude-pattern>
2021

2122
<rule ref="WordPress-Extra">
2223
<!-- Exclude as we use a custom autoloader. -->

0 commit comments

Comments
 (0)