mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Include "include" directory in source code metrics.
This commit is contained in:
4
metrics
4
metrics
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import glob
|
||||
import itertools
|
||||
import re
|
||||
|
||||
TODO_PATTERN = re.compile(r'\s*// TODO\(')
|
||||
@ -19,7 +20,8 @@ num_expects = 0
|
||||
num_test_empty = 0
|
||||
num_test = 0
|
||||
|
||||
for source_path in glob.iglob("src/*.[ch]"):
|
||||
files = itertools.chain(glob.iglob("src/*.[ch]"), glob.iglob("include/*.[ch]"))
|
||||
for source_path in files:
|
||||
num_files += 1
|
||||
with open(source_path, "r") as input:
|
||||
for line in input:
|
||||
|
||||
Reference in New Issue
Block a user