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

Implement Gherkin formatting plugin #928

Closed
wants to merge 3 commits into from

Conversation

jamietanna
Copy link
Contributor

@jamietanna jamietanna commented Sep 2, 2021

Closes #907.

@nedtwigg
Copy link
Member

nedtwigg commented Sep 4, 2021

Very cool, thx for opening, looks like you're on the right track, lmk when you'd like more input / ready to merge.

@jamietanna jamietanna marked this pull request as ready for review September 6, 2021 20:40
@jamietanna
Copy link
Contributor Author

Thanks @nedtwigg - should be ready for reviews when you get a chance.

(I'll need to rebuild the PR shortly - I've just pushed the dependent upstream library, but it takes ~15-20 minutes to appear in Maven Central)

@jamietanna jamietanna force-pushed the feature/gherkin branch 2 times, most recently from 9baf9ad to 14fbe09 Compare September 6, 2021 21:13
As part of diffplug#907, we want to be able to format our Gherkin source files
automagically.

To do this, we can utilise the upstream gherkin-formatter project to do
the heavy lifting, and add a few test cases within this project to make
sure that functionality looks correct.

We're calling this a `simple` formatter as it doesn't allow much to be
configured other than the indentation size in spaces.
As we've created a Gherkin formatter as part of diffplug#907, we should make it
possible to use it natively in Gradle, which requires we add it as a new
supported type in `SpotlessExtension`.
@jamietanna
Copy link
Contributor Author

Moving to a draft because there's a change that I'd prefer to be in the upstream library before this should be widely usable

@nedtwigg
Copy link
Member

nedtwigg commented Dec 7, 2021

Just FYI, if you'd like to remove the reflection code, you could use the approach in #1012 if you'd like. Happy to merge either way.

@nedtwigg
Copy link
Member

nedtwigg commented Apr 5, 2023

@nedtwigg nedtwigg closed this Apr 5, 2023
@nedtwigg
Copy link
Member

nedtwigg commented Apr 6, 2023

Published in plugin-gradle 6.18.0 and plugin-maven 2.36.0.

@jamietanna jamietanna deleted the feature/gherkin branch May 5, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Gherkin formatting plugin
2 participants