1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-line-count.git synced 2025-04-26 03:27:11 -07:00
This commit is contained in:
Cedric Beust 2015-10-11 19:28:23 -07:00
parent d772f498a8
commit 7780a54ffb
5 changed files with 8 additions and 10 deletions

View file

@ -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
}