Skip to content

Commit

Permalink
feat: add coloc by directory for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 16, 2020
1 parent 802c273 commit b0ef944
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/cloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ var clocCmd = &cobra.Command{
}
}

for range dirs {
//processor.DirFilePaths =
processor.Format = "cloc-yaml"

for _, dir := range dirs {
processor.DirFilePaths = []string{dir}
processor.ConfigureGc()
processor.ConfigureLazy(true)
processor.Process()
}

return
} else {
processor.DirFilePaths = args
}
Expand Down

0 comments on commit b0ef944

Please sign in to comment.