mirror of
https://github.com/ethauvin/kobalt-line-count.git
synced 2025-04-26 03:27:11 -07:00
0.174.
This commit is contained in:
parent
d772f498a8
commit
7780a54ffb
5 changed files with 8 additions and 10 deletions
|
@ -43,11 +43,10 @@ public class LineCountPlugin : BasePlugin(), KobaltLogger {
|
|||
if (path.toFile().exists()) {
|
||||
Files.walkFileTree(path, object : SimpleFileVisitor<Path>() {
|
||||
override public fun visitFile(path: Path, attrs: BasicFileAttributes): FileVisitResult {
|
||||
log(2, "File: $path")
|
||||
if (matcher.matches(path)) {
|
||||
fileCount++
|
||||
lineCount += Files.lines(path).count()
|
||||
log(2, " MATCH $path")
|
||||
log(3, " MATCH $path")
|
||||
}
|
||||
return FileVisitResult.CONTINUE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue