Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore or bypass errors phpcs

How to bypass or ignore specific errors/warnings in vscode?, I am using phpcs.

enter image description here

like image 577
bashman Avatar asked Feb 17 '26 23:02

bashman


1 Answers

What you are looking for is to ignore the warning and/or errors, that are notified by the phpcs in the console of the vscode.

For Warnings

Use the following config in your settings.json

"phpcs.showWarnings": false,

this will remove all the warnings displayed in the output console.

For Errors

You should go trough the DOCS for complete details but to remove the errors related to the Doc block and the formatting standards you can set the

"phpcs.errorSeverity": 6,

Although it is mostly used for testing or code reviews to check for total warnings and errors by setting different values for both, but for development i dont do that and keep it to the default value that is 5 but you can get rid of those errors above in your image.

like image 139
Muhammad Omer Aslam Avatar answered Feb 21 '26 14:02

Muhammad Omer Aslam