Skip to content

Commit 636a33c

Browse files
committed
fix: fix tests
1 parent c959153 commit 636a33c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code-quality/src/main/kotlin/cc/unitmesh/quality/comment/rule/MissingParameterDescRule.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MissingParameterDescRule : CommentRule() {
3535
}
3636

3737
val matchNames = matches.map { it.groupValues[1] }.toSet()
38-
val nodeNames = node.Parameters.map { it.TypeType }.toSet()
38+
val nodeNames = node.Parameters.map { it.TypeValue }.toSet()
3939

4040
if (matchNames != nodeNames) {
4141
callback(this, IssuePosition())

code-quality/src/test/kotlin/cc/unitmesh/quality/comment/rule/MissingParameterDescRuleTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ class IssueEmitCallback : IssueEmit {
9595
override fun invoke(rule: Rule, position: IssuePosition) {
9696
hasIssue = true
9797
}
98-
}
98+
}

0 commit comments

Comments
 (0)