sandhje / vscode-phpmd

VSCode PHP Mess Detector extension
MIT License
15 stars 3 forks source link

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

Open giorgio79 opened 6 years ago

giorgio79 commented 6 years ago

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 commented 6 years ago

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 commented 4 years ago

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