Skip to content

Commit 0b547c4

Browse files
committed
refactor(linecount): remove unused analyzeDirectory method
Clean up SCCWrapper by removing the unused convenience method for directory analysis with exclude patterns.
1 parent 5f98290 commit 0b547c4

File tree

1 file changed

+0
-13
lines changed
  • core/src/main/kotlin/cc/unitmesh/devti/agent/tool/linecount

1 file changed

+0
-13
lines changed

core/src/main/kotlin/cc/unitmesh/devti/agent/tool/linecount/SCCWrapper.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,6 @@ class SccWrapper(): CmdWrapper<SccResult> {
5656
throw SccException("Failed to parse scc output", e)
5757
}
5858
}
59-
60-
// 快捷方法示例
61-
fun analyzeDirectory(directory: String, excludeDirs: List<String> = emptyList()): List<SccResult> {
62-
val args = mutableListOf<String>().apply {
63-
add(directory)
64-
if (excludeDirs.isNotEmpty()) {
65-
add("--exclude-dir")
66-
add(excludeDirs.joinToString(","))
67-
}
68-
}
69-
70-
return runSync(*args.toTypedArray())
71-
}
7259
}
7360

7461
class SccException(message: String, cause: Throwable? = null) : RuntimeException(message, cause)

0 commit comments

Comments
 (0)