ikappas / vscode-phpcs

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

Underlining Not bad code #69

Closed amebrahimi closed 6 years ago

amebrahimi commented 6 years ago

Hello i have just installed phpcs on vsc and it is showing some errors that are not errors anyone any suggestions 2017-11-18_10-27-20

ikappas commented 6 years ago

@amebrahimi Thanks for your feedback! What coding standard are you using ?

amebrahimi commented 6 years ago

@ikappas I'm fairly new to PHP and I'm using Laravel framework. thank you for your response.

ikappas commented 6 years ago

@amebrahimi If you have not specified the 'phpcs.standard' in your vscode settings and have not changed your default standard in your terminal, this will be PSR2 which shows various errors for the above snippet. I also suspect that you need to use a Laravel specific coding standard.

Please install vscode-phpcs 1.0.4 and set phpcs.showSources: true in your user configuration to see where these issues come from in the problems pane. Please refer to the plugin documentation for more information.

ikappas commented 6 years ago

@amebrahimi Any update on this?

ikappas commented 6 years ago

Closing this due to inactivity. Feel free to reopen if you continue to experience the issue.