Hello,
In my project instead of using a simple [1.0.0] - 2021-04-06 we use [1.0.0](#100---2021-04-06) - 2021-04-06 (to quickly focus on the paragraph version and to be more pretty).
But because you only check for "] - " to end the parsing of the version then in my changelogs the changelogCheck is going to always throw the error below:
|
Preconditions.checkArgument(line.startsWith(VERSION_BEGIN)); |
|
int versionEnd = line.indexOf("] - "); |
|
if (versionEnd == -1) { |
|
parser.addError(line.baseLineNumberStart(), "'] - ' is missing from the expected '## [x.y.z] - yyyy-mm-dd'"); |
|
return null; |
|
} |
What do you think?
Hello,
In my project instead of using a simple
[1.0.0] - 2021-04-06we use[1.0.0](#100---2021-04-06) - 2021-04-06(to quickly focus on the paragraph version and to be more pretty).But because you only check for
"] - "to end the parsing of the version then in my changelogs the changelogCheck is going to always throw the error below:spotless-changelog/spotless-changelog-lib/src/main/java/com/diffplug/spotless/changelog/Changelog.java
Lines 252 to 257 in 3b773c3
What do you think?