From 5bbaeac8f4b574c10ca8e7443de972b042aa8aae Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Thu, 8 Jun 2023 09:19:48 -0500 Subject: [PATCH] Utilities/StaticAnalyzers: Remove postprocess-scan-build.py script no longer needed. --- .../scripts/postprocess-scan-build.py | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100755 Utilities/StaticAnalyzers/scripts/postprocess-scan-build.py diff --git a/Utilities/StaticAnalyzers/scripts/postprocess-scan-build.py b/Utilities/StaticAnalyzers/scripts/postprocess-scan-build.py deleted file mode 100755 index c1143f202b1eb..0000000000000 --- a/Utilities/StaticAnalyzers/scripts/postprocess-scan-build.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env python3 -from bs4 import BeautifulSoup -import sys -import os -url = os.path.abspath(sys.argv[1]) -report_dir = os.path.dirname(url) -page = open(url) -soup = BeautifulSoup(page.read(), 'html.parser') -page.close() -seen = dict() -tables = soup.find_all('table', recursive=True) - -rowheader = tables[2].find('thead') -rowheaders = rowheader.find_all('tr') -htag = soup.new_tag('td') -htag.string = 'Num reports' -htag['class'] = 'Q' -rowheaders[-1].insert(7, htag) -sortable = rowheaders[-1].find_all('span') -sortable[0].string.replace_with(' ▾') - -rowsbody = tables[2].find('tbody') -rows = rowsbody.find_all('tr') -for row in rows: - cells = row.find_all('td') - if cells: - key = str(cells[2])+str(cells[3])+str(cells[4]) - if key in seen.keys(): - seen[key] = seen[key]+1 - href = cells[6].find('a', href=True) - if href: - report = href['href'].split("#")[0] - report_file = os.path.join(report_dir, report) - if report.startswith("report-") and os.path.exists(report_file): - os.remove(report_file) - row.decompose() - else: - seen[key] = 1 - - -rowsbody = tables[2].find('tbody') -rows = rowsbody.find_all('tr') -for row in rows: - cells = row.find_all('td') - if cells: - key = str(cells[2])+str(cells[3])+str(cells[4]) - tag = soup.new_tag('td') - tag.string = '{}'.format(seen[key]) - tag['class'] = 'Q' - row.insert(3, tag) -print(soup.prettify(formatter=None))