Skip to content

Commit

Permalink
refactor: rename comment linter
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 8, 2024
1 parent 6a7d163 commit 940a7de
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cc.unitmesh.quality.documentation
package cc.unitmesh.quality.comment

import chapi.domain.core.CodePosition
import kotlinx.serialization.Serializable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package cc.unitmesh.quality.documentation
package cc.unitmesh.quality.comment

import cc.unitmesh.quality.QualityAnalyser
import chapi.domain.core.CodeDataStruct
import org.archguard.rule.core.Issue

class DocCommentAnalyser(comments: List<CodeComment>, thresholds: Map<String, Int>) : QualityAnalyser {
class CommentAnalyser(comments: List<CodeComment>, thresholds: Map<String, Int>) : QualityAnalyser {
override fun analysis(nodes: List<CodeDataStruct>): List<Issue> {
return listOf()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package cc.unitmesh.quality.documentation.rule
package cc.unitmesh.quality.comment.rule

import chapi.domain.core.CodeDataStruct
import chapi.domain.core.CodeFunction
import org.archguard.rule.core.IssueEmit
import org.archguard.rule.core.Rule
import org.archguard.rule.core.RuleContext

open class DocRule : Rule() {
open class CommentRule : Rule() {
override fun visit(rootNode: Any, context: RuleContext, callback: IssueEmit) {

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cc.unitmesh.quality.documentation.rule
package cc.unitmesh.quality.comment.rule

/**
* Parse the documentation of the code and check whether the documentation is complete.
Expand All @@ -17,6 +17,6 @@ package cc.unitmesh.quality.documentation.rule
*
* We can use this rule to check whether the documentation is complete.
*/
class MissingParameterDescRule: DocRule() {
class MissingParameterDescRule: CommentRule() {

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cc.unitmesh.quality.documentation
package cc.unitmesh.quality.comment

import chapi.domain.core.CodePosition
import org.junit.jupiter.api.Assertions.assertEquals
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cc.unitmesh.pick.builder.comment

import cc.unitmesh.core.SupportedLang
import cc.unitmesh.quality.documentation.CodeComment
import cc.unitmesh.quality.comment.CodeComment

/**
* Extracts the documentation comments (KDoc) from the given code.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cc.unitmesh.pick.builder.comment

import cc.unitmesh.core.SupportedLang
import cc.unitmesh.quality.documentation.CodeComment
import cc.unitmesh.quality.comment.CodeComment
import cc.unitmesh.core.comment.CommentBuilder
import cc.unitmesh.core.comment.DocCommentInstruction
import cc.unitmesh.core.comment.TypedCommentIns
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cc.unitmesh.pick.builder.comment.ins

import cc.unitmesh.core.Instruction
import cc.unitmesh.quality.documentation.CodeComment
import cc.unitmesh.quality.comment.CodeComment
import cc.unitmesh.core.comment.CommentBuilderType
import cc.unitmesh.core.comment.DocCommentInstruction
import cc.unitmesh.core.comment.TypedCommentIns
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cc.unitmesh.pick.builder.comment.ins

import cc.unitmesh.core.Instruction
import cc.unitmesh.quality.documentation.CodeComment
import cc.unitmesh.quality.comment.CodeComment
import cc.unitmesh.core.comment.CommentBuilderType
import cc.unitmesh.core.comment.DocCommentInstruction
import cc.unitmesh.core.comment.TypedCommentIns
Expand Down

0 comments on commit 940a7de

Please sign in to comment.