Skip to content

Excludes unnecessary folders and files#15

Open
nayanchamp7 wants to merge 2 commits intoelegantthemes:masterfrom
nayanchamp7:master
Open

Excludes unnecessary folders and files#15
nayanchamp7 wants to merge 2 commits intoelegantthemes:masterfrom
nayanchamp7:master

Conversation

@nayanchamp7
Copy link
Copy Markdown

@nayanchamp7 nayanchamp7 commented Mar 25, 2026

Summary

This PR improves PHPCS performance and consistency by excluding unnecessary directories from code sniffing.

Changes

Added exclude patterns to the ruleset file:

  • vendor/
  • node_modules/
  • build/
<!-- Exclude unnecessary folders & files -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>

Why

These directories contain:

  • Third-party dependencies
  • Compiled/generated assets

They are not part of the plugin source code and should not be analyzed by PHPCS.

Benefits

  • Faster PHPCS execution
  • Reduced noise from irrelevant warnings/errors
  • Consistent behavior across local, IDE, and CI environments

Impact

No impact on source code. Only affects linting scope.


Attached PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants