Skip to content

Commit

Permalink
fix (ide): Bump google-java-formatter from 1.20.0 to 1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Mar 7, 2024
1 parent 8cdefe8 commit 90af2d8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ repos:
hooks:
- id: pretty-format-java
# Keep this version in sync with the same version in .vscode/settings.json
args: [--autofix, --aosp, --google-java-formatter-version=1.20.0]
args: [--autofix, --aosp, --google-java-formatter-version=1.21.0]

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1
Expand Down
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@
"java.format.settings.google.extra": "--aosp", // For 4 instead of 2 spaces!
// Keep this version in sync with the same version in .pre-commit-config.yaml
// NB: Changes to this are only taken into account on start-up, so need to restart.
"java.format.settings.google.version": "1.20.0",
// TODO Remove when https://github.com/google/google-java-format/issues/1072 is fixed:
"java.format.settings.google.mode": "jar-file",
"java.format.settings.google.version": "1.21.0",
// TODO https://github.com/eclipse-jdtls/eclipse.jdt.ls/issues/3050
"java.compile.nullAnalysis.mode": "automatic",
"java.completion.importOrder": ["#", "", "javax", "java"], //# is static
Expand Down
10 changes: 5 additions & 5 deletions cli/src/test/java/dev/enola/cli/EnolaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ public void get() {
.out()
.startsWith(
"""
id {
ns: "test"
entity: "foobar"
paths: "helo"
""");
id {
ns: "test"
entity: "foobar"
paths: "helo"
""");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class MarkdownResourceTest {
...
-->
""";
""";

String FRONTMATTER =
"""
Expand All @@ -51,11 +51,12 @@ public class MarkdownResourceTest {
""";

String MD = """
String MD =
"""
# Thaw Blough!
**It rocks...**
""";
""";

@Test
public void commentFrontmatterMarkdown() throws IOException {
Expand Down
24 changes: 12 additions & 12 deletions core/impl/src/test/java/dev/enola/core/tbd/RosettaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ public void testTextprotoToYaml() throws Exception {
var expectedOut =
StringResource.of(
"""
id:
ns: demo
entity: bar
paths: [abc, def]
related:
one:
ns: demo
entity: baz
paths: [uvw]
link: {wiki:\
'https://en.wikipedia.org/w/index.php?fulltext=Search&search=def'}
""",
id:
ns: demo
entity: bar
paths: [abc, def]
related:
one:
ns: demo
entity: baz
paths: [uvw]
link: {wiki:\
'https://en.wikipedia.org/w/index.php?fulltext=Search&search=def'}
""",
YAML_UTF_8);
assertThat(out.charSource().read()).isEqualTo(expectedOut.charSource().read());
}
Expand Down

0 comments on commit 90af2d8

Please sign in to comment.