Skip to content

Commit 91c5ae7

Browse files
author
dnichol
committed
Add recursive generation of source reports for sub projects and concatenation to a consolidated source report
1 parent af6b6d6 commit 91c5ae7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/generate_source_reports_for_sub_projects_recursive.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ def genreportsforversion(projectname,versionname,reportlist):
7777
components = hub.get_version_components(projversion)
7878

7979
subname = (projectname + '_' + versionname + '.zip')
80-
## CURRENTLY COMBINES ALL REPORTS TOGETHER.
81-
## SWITCH TO GENERATE COMPONENTS AND SECURITY AFTER SEPARATELY OR EXCLUDE NON SOURCE FROM CONCAT
80+
81+
# Generates reports in the main project for SECURITY, COMPONENTS and FILES (source) report and just FILES for subprojects.
8282
result = hub.create_version_reports(version=projversion, report_list=reportlist, format="CSV")
83-
# Generates reports in the main project for SECURITY, COMPONENTS and FILES (source) report,
84-
# Using the version object (line 21) to say which reports are needed
83+
8584
# prints out success/error code.
8685
if result.status_code == 201:
8786
print("Successfully created reports ({}) for project {} and version {}".format(

0 commit comments

Comments
 (0)