Skip to content

Commit 24eb4a6

Browse files
committed
fix: show only primary annotations in analyzer
1 parent 1c02af3 commit 24eb4a6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/kotlin/com/github/xepozz/mago/qualityTool/MagoJsonMessageHandler.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class MagoJsonMessageHandler {
1515
?.flatMap { issue ->
1616
issue.getAsJsonArray("annotations")
1717
?.map { it.asJsonObject }
18+
?.filter { it.get("kind").asString == "Primary" }
1819
?.mapNotNull { annotation ->
1920
val span = annotation.getAsJsonObject("span") ?: return@mapNotNull null
2021
val filePath = (span.getAsJsonObject("file_id")

0 commit comments

Comments
 (0)