ikappas / vscode-phpcs

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

How do I know which rule is causing the error? #176

Closed pramodjodhani closed 4 years ago

pramodjodhani commented 4 years ago

I want to ignore certain rules. But I don't know what's the key to the specific rule. vscode-phpcs only shows the error message and not the rule which triggered the error.

For example. if I get the error message Processing form data without nonce verification., I want to know the key WordPress.Security.NonceVerification.Missing

So I can ignore the specific rule only. // phpcs:ignore WordPress.Security.NonceVerification.Missing

Help on this is highly appreciated 🙏