ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Do not check coding standards in diff view #190

Open str opened 3 years ago

str commented 3 years ago

When comparing changes before commiting them, the PHPCS shows a lot of errors.

The errors on the "before" side, do not matter because you can't do anything for what was before. The errors on the "changes" side, do not matter neither because you are not editing the file, you are just comparing changes. If you want to see if your changes break any CS rule, go and edit it.

Also, the CS rules defined in the phpcs.xml are ignored in this view, so the broken rules shown in this view are wrong.