Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
  • Loading branch information
arthurscchan committed Jan 11, 2024
1 parent 66ef9fb commit bd3df4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/fuzz_introspector/analyses/sinks_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,10 @@ def _retrieve_content_rows(
self, functions: List[function_profile.FunctionProfile],
proj_profile: project_profile.MergedProjectProfile,
target_lang: str, func_callsites: Dict[str, List[str]],
coverage: code_coverage.CoverageProfile, cwe: str) -> Tuple[str, str]:
coverage: code_coverage.CoverageProfile,
cwe: str) -> Tuple[str, str]:
"""
Retrieve the content for this analyser for a specific cwe
Retrieve the content for this analyser for a specific cwe
in two formats. One in normal html table rows string and the
other is in json string for generating separate json report
for sink coverage that could be readable by external analyser.
Expand Down Expand Up @@ -596,8 +597,7 @@ def analysis_func(self,
# Retrieve table content rows
html_rows, json_row = self._retrieve_content_rows(
function_list, proj_profile, profiles[0].target_lang,
function_callsite_dict, proj_profile.runtime_coverage,
cwe)
function_callsite_dict, proj_profile.runtime_coverage, cwe)

self.set_json_string_result(json_row)
json_report.add_analysis_json_str_as_dict_to_report(
Expand All @@ -608,8 +608,8 @@ def analysis_func(self,
return ""

html_string += html_helpers.html_add_header_with_link(
f"Sink functions/methods found for {cwe}", html_helpers.HTML_HEADING.H2,
table_of_contents)
f"Sink functions/methods found for {cwe}",
html_helpers.HTML_HEADING.H2, table_of_contents)

# Third party function calls table
tables.append(f"myTable{len(tables)}")
Expand Down

0 comments on commit bd3df4f

Please sign in to comment.