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

[0.6-beta] Profiles and Code Formatter (psr-2) #54

Open
gossi opened this issue Aug 4, 2018 · 0 comments
Open

[0.6-beta] Profiles and Code Formatter (psr-2) #54

gossi opened this issue Aug 4, 2018 · 0 comments

Comments

@gossi
Copy link
Member

gossi commented Aug 4, 2018

Hello PSR-2 Lemmings,

I've got something for you. With v0.6-beta you will be able to use the profile configuration option to select a code style profile from gossi/php-code-profiles. Set it to psr-2. That said, I have no idea whether I configured this stupid space-oriented code style correctly, send PR to the referenced repo if something is wrong.

Second did I implemented the gossi/php-code-formatter as post processing after code generation. Activate it by setting the new enableFormatting option to true. It will use the given profile and run the formatting based on that. I started the php-code-formatter as an experiment back in time and it basically never went past that. Though I think this is still one of the best options today. Given that, the formatter is still very experimental and if you encounter something wrong, open an issue over there. If you want it fixed, send a PR (the wiki contains a good amount of documentation). Chances I will work on this are very, very low. Just you are aware of this.

Please share your experience using these two options and if there aren't any critical use-cases, I can turn this beta into stable.

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

No branches or pull requests

1 participant