Skip to content

Commit b1abdfa

Browse files
committed
Merge branch 'main' into dependabot/gradle/org.cqfn.diktat-diktat-rules-1.2.3
2 parents 74d0acc + bcfec8f commit b1abdfa

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13+
### Fixed
14+
* Fix Clang not knowing the filename and changing the format ([#1268](https://github.com/diffplug/spotless/pull/1268) fixes [#1267](https://github.com/diffplug/spotless/issues/1267)).
1315

1416
## [2.28.0] - 2022-07-28
1517
### Added

lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ String format(ProcessRunner runner, String input, File file) throws IOException,
112112
}
113113
final String[] processArgs = args.toArray(new String[args.size() + 1]);
114114
processArgs[processArgs.length - 1] = "--assume-filename=" + file.getName();
115-
return runner.exec(input.getBytes(StandardCharsets.UTF_8), args).assertExitZero(StandardCharsets.UTF_8);
115+
return runner.exec(input.getBytes(StandardCharsets.UTF_8), processArgs).assertExitZero(StandardCharsets.UTF_8);
116116
}
117117

118118
FormatterFunc.Closeable toFunc() {

plugin-gradle/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Fixed
7+
* Fix Clang not knowing the filename and changing the format ([#1268](https://github.com/diffplug/spotless/pull/1268) fixes [#1267](https://github.com/diffplug/spotless/issues/1267)).
68

79
## [6.9.0] - 2022-07-28
810
### Added

plugin-maven/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Fixed
7+
* Fix Clang not knowing the filename and changing the format ([#1268](https://github.com/diffplug/spotless/pull/1268) fixes [#1267](https://github.com/diffplug/spotless/issues/1267)).
68

79
## [2.24.0] - 2022-07-28
810
### Added

plugin-maven/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
481481
<include>src/*/antlr4/**/*.g4</include>
482482
</includes>
483483

484-
<antlr4formatter /> <!-- has its own section below -->
484+
<antlr4Formatter /> <!-- has its own section below -->
485485

486486
<licenseHeader>
487487
<content>/* (C)$YEAR */</content> <!-- or <file>${project.basedir}/license-header</file> -->
@@ -490,14 +490,14 @@ Groovy-Eclipse formatting errors/warnings lead per default to a build failure. T
490490
</configuration>
491491
```
492492

493-
### antlr4formatter
493+
### antlr4Formatter
494494

495495
[homepage](https://github.com/antlr/Antlr4Formatter). [available versions](https://search.maven.org/artifact/com.khubla.antlr4formatter/antlr4-formatter). [code](https://github.com/diffplug/spotless/blob/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/antlr4/Antlr4Formatter.java).
496496

497497
```xml
498-
<antlr4formatter>
498+
<antlr4Formatter>
499499
<version>1.2.1</version> <!-- optional -->
500-
</antlr4formatter>
500+
</antlr4Formatter>
501501
```
502502

503503
## SQL

0 commit comments

Comments
 (0)