-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Assertion failed: anchorBefore == null || anchorBefore.getTreeParent() == parent in rule [kdoc-formatting] #1489 What's done: - fix for KDOC_WRONG_TAGS_ORDER rule - warning test "tags should be ordered assertion issue" - fix test "extra new line with tags ordering should not cause assert"
- Loading branch information
1 parent
95efc18
commit 52b4096
Showing
5 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
diktat-rules/src/test/resources/test/paragraph2/kdoc/OrderedTagsAssertionExpected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.saveourtool.save.reporter.json | ||
|
||
/** | ||
* Reporter that produces a JSON report as a [Report] | ||
* | ||
* @param builder additional configuration lambda for serializers module | ||
* @property out a sink for output | ||
*/ | ||
class JsonReporter( | ||
override val out: BufferedSink, | ||
builder: PolymorphicModuleBuilder<Plugin.TestFiles>.() -> Unit = {} | ||
) : Reporter |
13 changes: 13 additions & 0 deletions
13
diktat-rules/src/test/resources/test/paragraph2/kdoc/OrderedTagsAssertionTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.saveourtool.save.reporter.json | ||
|
||
/** | ||
* Reporter that produces a JSON report as a [Report] | ||
* | ||
* @property out a sink for output | ||
* | ||
* @param builder additional configuration lambda for serializers module | ||
*/ | ||
class JsonReporter( | ||
override val out: BufferedSink, | ||
builder: PolymorphicModuleBuilder<Plugin.TestFiles>.() -> Unit = {} | ||
) : Reporter |