-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
Add pretty-formatters for Gherkin (for Java) #1729
Comments
Duplicate of cucumber/gherkin-utils#4. Also see #1725 |
But your code is really nice! Thanks for the effort :-) |
8 tasks
Thanks @aslakhellesoy - do you think it's worth me raising a separate PR for importing my implementation? |
@jamietanna this could be really usefull especially for the cucumber-eclipse plugin that currently lacks formatting capabilities. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
As someone who writes Gherkin feature files, I'd like to be sure my formatting is consistent across contributors to the project - whether editing in an IDE, or a text editor - and that can be automated as part of i.e. a code formatter like Spotless
Describe the solution you'd like
Add a pretty-formatter for Gherkin as a first-class citizen. This would allow taking i.e. a
String
, returning aString
that is formatted according to pre-defined rules, and with indentation that can be specified.I've recently implemented this in https://gitlab.com/jamietanna/gherkin-formatter and have licensed as MIT purposefully so Cucumber could take it as-is.
Describe alternatives you've considered
We write our own formatter.
The text was updated successfully, but these errors were encountered: