Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use files.associations php files instead of "php" document #187

Open
vijayakumarkarthik opened this issue Jan 6, 2021 · 4 comments
Open

Comments

@vijayakumarkarthik
Copy link

Currently when the file extension is *.module, *.inc etc, phpcs extension is not working.

@leolandotan
Copy link

I'm having the same issue. Did you find fix @vijayakumarkarthik ?

@jefflogan303
Copy link

I couldn't find a workaround with this extension so used an alternative extension PHP Sniffer which does use the php files.associations settings: https://marketplace.visualstudio.com/items?itemName=wongjn.php-sniffer

The github project is here: https://github.com/wongjn/vscode-php-sniffer

@wakkoism
Copy link

wakkoism commented Jan 5, 2022

You have to have your phpcs.xml define or something similar in the project root. This is the one I use from Drupal https://github.com/drupal/core/blob/8.9.x/phpcs.xml.dist

@jefflogan303
Copy link

Thank you for explaining this, i'll give this extension another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants