Skip to content

Commit 5a8a183

Browse files
committed
Updated.
1 parent a4d1829 commit 5a8a183

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

job_compassplus/tx_parse_xml/count_TODO_NOTE_FIXME_of_ADS_classes.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@ def process(path: str):
3333
if not layer_ads_dir.is_dir():
3434
continue
3535

36-
for module_path in layer_ads_dir.glob("*/src"):
37-
for class_path in module_path.glob("*.xml"):
38-
model = ET.fromstring(class_path.read_bytes())
39-
for task_el in model.findall(".//xsc:Task", namespaces=NS):
40-
assignee = task_el.attrib["Assignee"].strip()
41-
if not assignee:
42-
assignee = "<unknown>"
43-
44-
assignee_by_number[assignee] += 1
45-
46-
task_type = task_el.attrib["Type"]
47-
type_by_number[task_type] += 1
36+
for class_path in layer_ads_dir.glob("*/src/*.xml"):
37+
model = ET.fromstring(class_path.read_bytes())
38+
for task_el in model.findall(".//xsc:Task", namespaces=NS):
39+
assignee = task_el.attrib["Assignee"].strip()
40+
if not assignee:
41+
assignee = "<unknown>"
42+
43+
assignee_by_number[assignee] += 1
44+
45+
task_type = task_el.attrib["Type"]
46+
type_by_number[task_type] += 1
4847

4948
indent1 = " "
5049

0 commit comments

Comments
 (0)