Cosium / git-code-format-maven-plugin

A maven plugin that automatically deploys code formatters as pre-commit git hook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to choose Google style option for empty blocks

javydreamercsw opened this issue · comments

What steps will reproduce the problem?
Steps to reproduce the behavior:

  1. Have code like:
    void doNothing() {}
  2. Plugin formats to:
  void doNothingElse() {
  }

As per Google-style both are acceptable but plugin enforces one. Some teams might like to enforce one vs. the other.

What is the expected output?
Configured one.
What happens instead?
Multiline is enforced.
Environment:

  • OS: Mac Catalina 10.15.6
  • Git version: 2.24.3
  • git-code-format-maven-plugin version: 2.4
  • Maven version: 3.5.4