-
Notifications
You must be signed in to change notification settings - Fork 461
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
Conversation
Very cool, thx for opening, looks like you're on the right track, lmk when you'd like more input / ready to merge. |
d913ed1
to
ed08259
Compare
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) |
9baf9ad
to
14fbe09
Compare
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`.
14fbe09
to
6f0a35c
Compare
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 |
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. |
|
Published in |
Closes #907.