prettier-java
prettier-java copied to clipboard
Prettier Java Plugin
In testing an upgrade to 1.6.1, we're sometimes seeing line breaks introduced into generics. Seems like this is probably a result of #512. I can see this being useful in...
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.6.1 to 1.7.3. Release notes Sourced from shell-quote's releases. v1.7.2 Fix a regression introduced in 1.6.3. This reverts the Windows path quoting fix. (144e1c2) v1.7.1 Fix $...
**Prettier-Java 1.6.1** Related to https://github.com/jhipster/prettier-java/issues/77. In this case we're getting compilable code, it's just sub-ideal. ```sh # Options (if any): --print-width 140 ``` **Input:** ```java PreparedStatement statement = connection.prepareStatement( "INSERT...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7. Release notes Sourced from node-fetch's releases. v2.6.7 Security patch release Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th...
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...
**Prettier-Java 1.6.1** **Input:** ```java package com.vimat.model; public record Buyer(String name, double bestPrice, double joker) { public boolean hasBestOffer(Buyer other) { return switch (other) { case null -> true; case Buyer...
Binary operators are being wrapped in a Java-uncommon way. Binary operator wrapping/indentation was, as far as I can see, last overhauled in https://github.com/jhipster/prettier-java/pull/255 which "fixed" three issues. However, the discussion...
**Prettier-Java 1.6.1** ```sh # Options: --print-width 80 --tab-width 4 ``` **Input:** ```java package org.prettier.java; public class MyReallyLongClassName { public void method() { MyReallyLongClassName myReallyLongVariableName = new MyReallyLongClassName(); MyReallyLongClassName myReallyLongVariableName2 =...
prettier violates the JLS which states that a type annotation should be just before the type **Prettier-Java 0.5.1** **Input:** ```java private @Nullable Neo4j neo4j; ``` **Output:** ```java @Nullable private Neo4j...
**Prettier-Java 0.5.1** I'm not sure if this is the intended behavior of Prettier; Prettier adds a new line after class declarations but not after interface declarations. ```yml overrides: - files:...