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

Not working with non php extension files, like .module (Drupal) #42

Open
giorgio79 opened this issue Sep 9, 2018 · 2 comments
Open

Comments

@giorgio79
Copy link

phpmd is not running if the file extension is not php

Drupal has some peculiarities like naming files x.module

We even have https://marketplace.visualstudio.com/items?itemName=marcostazi.VS-code-drupal

Can we get phpmd to work with module files in vs code?

@sandhje
Copy link
Owner

sandhje commented Sep 14, 2018

Hi, currently only files with the "php" extension are supported. Should be doable though to make the extension configurable, I'll mark this as enhancement and try to add it in a following version.

@amaisano
Copy link

amaisano commented Jul 30, 2020

If you can provide configuration for options on the phpmd command, then we can use the --suffixes option, which lets you set module,php,inc,theme etc:

--suffixes: comma-separated string of valid source code filename extensions, e.g. php,phtml

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

No branches or pull requests

3 participants