mirror of https://github.com/veops/cmdb.git
delete code line count
This commit is contained in:
parent
1b4396bafd
commit
ac48e1cb19
|
@ -20,3 +20,4 @@ core/special.py
|
|||
lib/special
|
||||
lib/audit*
|
||||
templates/*audit*
|
||||
codeLin*
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
import os
|
||||
from collections import defaultdict
|
||||
|
||||
d = defaultdict(int) # value is 'int'
|
||||
|
||||
for dirpath, dirnames, filenames in os.walk('.'):
|
||||
for filename in filenames:
|
||||
if dirpath.endswith("tools"):
|
||||
continue
|
||||
path = os.path.join(dirpath, filename)
|
||||
ext = os.path.splitext(filename)[1]
|
||||
d[ext] += len(list(open(path)))
|
||||
|
||||
for ext, n_lines in d.items():
|
||||
print ext, n_lines
|
Loading…
Reference in New Issue