benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
814 stars 126 forks source link

phpcs run too long time when saving file #181

Open hustclf opened 7 years ago

hustclf commented 7 years ago

Hi, When I run phpsc on saving file, it takes almost 3 seconds to wait. I am using python3. And I have modified phpcs.py in line 182. ` // bofore return data.decode()

//after return data.decode('UTF-8', 'ignore') `

the console informations is as below: [Phpcs] D:/PHP_CodeSniffer-3.0.1/PHP_CodeSniffer-3.0.1/bin/phpcs.bat --report=checkstyle -n --standard=Shenma D:\ui\sm_common\application\Search\Shortcut\Module\Peoplestar.php [Phpcs] D:/PHP_CodeSniffer-3.0.1/PHP_CodeSniffer-3.0.1/bin/phpcs.bat --report=checkstyle -n --standard=Shenma D:\ui\sm_common\application\Search\Shortcut\Module\Peoplestar.php [Phpcs] cwd: D:\ui\sm_common\application\Search\Shortcut\Module [Phpcs] MZ // this step takes too long time [Phpcs] Linter found 0 errors [Phpcs] Sniffer found 0 errors

thanks for your help.

benmatselby commented 1 year ago

Hey @hustclf How long does the command take if you run this outside of Sublime Text? Could you provide your settings file please?