Skip to content

Commit 37f3db7

Browse files
committed
Copy reports by type to results folder. Recommendation from collicac
1 parent 91c5ae7 commit 37f3db7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/generate_source_reports_for_sub_projects_recursive.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,14 @@ def concat():
135135
consolidated.to_csv(file_out, index=False, encoding="utf-8")
136136
shutil.move(file_out, '../results/')
137137

138-
# If you do not want the original source reports for each project exclude this.
139-
files = glob.iglob('**/*.csv')
140-
for csv in files:
138+
for csv in glob.iglob('**/components*.csv'):
141139
shutil.move(csv, '../results/')
140+
for csv in glob.iglob('**/security*.csv'):
141+
shutil.move(csv, '../results/')
142+
143+
# If you do not want the original source reports for each project exclude this loop.
144+
#for csv in glob.iglob('**/source*.csv'):
145+
# shutil.move(csv, '../results/')
142146

143147
# Clean up after
144148
shutil.rmtree('../temp', ignore_errors=True)

0 commit comments

Comments
 (0)