AtomLinter / linter-phpmd

Atom linter plugin for php, using phpmd.
21 stars 4 forks source link

phpmd on modified files #24

Open lexbritvin opened 9 years ago

lexbritvin commented 9 years ago

Hello!

As I get it, linter-phpmd works only if file was saved. Is it possible to make it work on unsaved file?

Arcanemagus commented 9 years ago

It's technically possible to do with creating a temporary file with the current contents (which would enable the possibility of lintOnFly as well). This shouldn't be too hard as the helpers module now has a method to do this for us, nobody has worked on a PR for it though.

mdeboer commented 7 years ago

@Arcanemagus can you elaborate on what method this is?