Skip to content

Commit

Permalink
#200 fixing pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jfevang committed Jun 21, 2024
1 parent 5d479de commit 0979ddb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scubagoggles/reporter/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,13 @@ def rego_json_to_ind_reports(test_results_data : str, product : list, out_path :
'Criticality': test['Criticality'],
'Details': details})
full_name = prod_to_fullname[product]
markdownGroupName = "-".join(baseline_group['GroupName'].split())
groupReferenceURL = f'<a href="{SCUBA_GITHUB_URL}/tree/main/baselines/{full_name} Minimum Viable Secure Configuration Baseline v0.2.md#{baseline_group["GroupNumber"]}-{markdownGroupName}" target="_blank">{baseline_group["GroupName"]}</a>'
markdown_group_name = "-".join(baseline_group['GroupName'].split())
group_reference_url = f'<a href="{SCUBA_GITHUB_URL}/tree/main/baselines/'\
f'{full_name} Minimum Viable Secure Configuration Baseline v0.2.md#'\
f'{baseline_group["GroupNumber"]}-{markdown_group_name}" target="_blank"\>'\
f'{baseline_group["GroupName"]}</a>'
fragments.append(f"<h2>{product_upper}-{baseline_group['GroupNumber']} \
{groupReferenceURL}</h2>")
{group_reference_url}</h2>")
fragments.append(create_html_table(table_data))
results_data.update({"GroupName": baseline_group['GroupName']})
results_data.update({"GroupNumber": baseline_group['GroupNumber']})
Expand Down

0 comments on commit 0979ddb

Please sign in to comment.