Skip to content

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

@gossi

Description

@gossi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions