-
Notifications
You must be signed in to change notification settings - Fork 43
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
Integrate with php-code-formatter #23
Comments
First step would be to extract shared code into its own package (including profiles). Regarding the strategy. What would make most sense to me is the code formatting in post processing. It would affect the whole code (including method bodies) and not just partials of it. A combined effort could also work: Pass the profile to writer and second add an option to allow code-formatting in post-processing with the selected profile. That would also be progressive effort to post-processing ;) |
See #54 |
When generating code, the holy code-style (mine - of course!) is applied to the generated code, which is the most awesome default we can get. Yet, there are some other flavors around (especially brainless psr2-lemmings) which prefer different styles.
Interesstingly enough there is no good php code formatter around and that's why I created my php-code-formatter. It basically startet as an experiment, yet has grown but still lacks a good chunk of functionality to be considered usable.
There are many code styles around and they all have different options, that's why I implemented profiles to combine different options under one name.
So, here are some ideas how to integrate with the php-code-formatter:
Technically spoken: code-formatter and code-generator would share some code, which could be extracted into it's own package to avoid duplication, which seems good and doable.
I'm wondering what you think?
The text was updated successfully, but these errors were encountered: