diff --git a/code-quality/src/main/kotlin/cc/unitmesh/quality/comment/rule/CommentRule.kt b/code-quality/src/main/kotlin/cc/unitmesh/quality/comment/rule/CommentRule.kt index 49926b2..6a0fa39 100644 --- a/code-quality/src/main/kotlin/cc/unitmesh/quality/comment/rule/CommentRule.kt +++ b/code-quality/src/main/kotlin/cc/unitmesh/quality/comment/rule/CommentRule.kt @@ -7,10 +7,11 @@ import org.archguard.rule.core.Rule import org.archguard.rule.core.RuleContext open class CommentRule : Rule() { - override fun visit(rootNode: Any, context: RuleContext, callback: IssueEmit) { + fun visitRoot(node: CodeDataStruct, comment: String, context: RuleContext, callback: IssueEmit) { } - open fun visitDataStruct(dataStruct: CodeDataStruct, index: Int, callback: IssueEmit) {} - open fun visitFunction(function: CodeFunction, index: Int, callback: IssueEmit) {} + fun visitFunction(node: CodeFunction, comment: String, context: RuleContext, callback: IssueEmit) { + + } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0bfbc61..38c0fdc 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,7 +17,7 @@ clikt = "4.2.1" chocolate-factory = "0.4.5" -chapi = "2.2.4" +chapi = "2.2.5" archguard = "2.1.2" codedb = "0.1.3"