cucumber / cucumber/common

Enable automatic code formatting for Java

Open
#2,280 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
3.4k
Forks
679
PR merge metrics
No merged PRs in 30d

Description

### 🤔 What's the problem you've observed?

We currently don't automatically format our code.

This is not a big problem when I'm working on a Java project on my own as my IDE already applies a sensible style. And it seems that every one else can copy-paste the style just fine.

Still some small differences sneak in here and there.

### ✨ Do you have a proposal for making it better?

By enabling automatic code formatting we don't have to think about this anymore.

### 📚 Any additional context?

We are currently using [spotless](https://github.com/diffplug/spotless/tree/main/plugin-maven#google-java-format) in Cucumber-JVM. However this comes with [some custom settings](https://github.com/cucumber/cucumber-jvm/tree/main/.spotless) that would have to de (de-)duplicated somehow.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.