Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

phpmd on modified files #24

Open
lexbritvin opened this issue Oct 30, 2015 · 2 comments
Open

phpmd on modified files #24

lexbritvin opened this issue Oct 30, 2015 · 2 comments

Comments

@lexbritvin
Copy link

Hello!

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

@Arcanemagus
Copy link
Member

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
Copy link
Contributor

mdeboer commented Jan 31, 2017

@Arcanemagus can you elaborate on what method this is?

@Arcanemagus Arcanemagus changed the title phpmd on unsaved file phpmd on modified files Sep 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants