jcartledge / atom-phpcbf

https://atom.io/packages/phpcbf
MIT License
3 stars 6 forks source link

Adds a select in the config with available standards #5

Closed studioromeo closed 8 years ago

studioromeo commented 8 years ago

example

jcartledge commented 8 years ago

Not sure about this one. The functionality is great, but it comes up short if the user has other standards installed - e.g.:

image

I use the Drupal standard in my day job. (It's why I wrote this.)

I considered parsing the output of phpcs -i (phpcbf -i does the same thing) but it's a bit nasty.

Any ideas?

studioromeo commented 8 years ago

Hi sorry I've only just seen this.

That's a really good point I don't think there's a clean way to do it since we'd have to parse the output of phpcs -i which can be done but I don't think it's worth it.

I think this is something I can address in some usage docs.