wongjn / vscode-php-sniffer

Visual Studio Code extension for PHP_Codesniffer validation and formatting.
https://marketplace.visualstudio.com/items?itemName=wongjn.php-sniffer
MIT License
46 stars 7 forks source link

Exclude folder options. #24

Closed ulziibat-n closed 4 years ago

ulziibat-n commented 4 years ago

Is your feature request related to a problem? Please describe. Hello. First thanks for the making this extension for developers. This extension saves many days of mine. I have some problem. I am a WordPress Developer. Yesterday i have little problem. I need to use external PHP library for my project. This library is huge, includes many many files. After added this library to my project phpcs linting was very slow. Sometimes fixer does not work. CPU loading is increased.

Describe the solution you'd like I have an idea for this issue. I want to exclude huge library folder. Just want to sniff my project code. I tried to exclude folder from phpcs.xml.dist file. But can't get success.

Additional context Do you have any solution way like this problem? If you have it, please recommend me.

Thanks.

wongjn commented 4 years ago

Having many files in VSCode project does not proportionally increase resource usage of this extension. The extension only operates on currently open files in the editor window.

Please see this comment to implement folder exclusion.