You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the goals of setting up the workflow for this project was that generating parsers should only depend on Berp. This simplifies the image needed to build this project. However PHP also formatted the parser using vendored tools. This effectively adds a dependency on PHP.
Yeah I agree this should be changed. Probably this was just laziness understanding the berp templates on my part.
It makes sense to me, now that we're unpicking the build steps, to have the codegen here rely only on Berp, but validate the formatting as part of the PHP test run by using php-cs-fixer with appropriate flags to not 'fix' stuff.
IIRC the Golang build does go fmt during code generation, so maybe we should change it there too.
Already fixed that.
It makes sense to me, now that we're unpicking the build steps, to have the codegen here rely only on Berp, but validate the formatting as part of the PHP test run by using php-cs-fixer with appropriate flags to not 'fix' stuff.
🤔 What's the problem you've observed?
One of the goals of setting up the workflow for this project was that generating parsers should only depend on Berp. This simplifies the image needed to build this project. However PHP also formatted the parser using vendored tools. This effectively adds a dependency on PHP.
gherkin/php/Makefile
Lines 47 to 52 in 6b84ba8
✨ Do you have a proposal for making it better?
Either
gherkin-php.razor
to produce correctly formatted files💻 Additional context
In #3 I've removed the code formatter and fixed most of the razor file. I couldn't fix everything.
The text was updated successfully, but these errors were encountered: