From 973114e67c16777fcf030f27c94da7662a9bf980 Mon Sep 17 00:00:00 2001 From: SDV Team <98988753+sdv-team@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:57:24 -0500 Subject: [PATCH] Latest Code Analysis (#664) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- static_code_analysis.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/static_code_analysis.txt b/static_code_analysis.txt index 702d9ce5..7b8c850d 100644 --- a/static_code_analysis.txt +++ b/static_code_analysis.txt @@ -1,4 +1,4 @@ -Run started:2024-09-25 19:32:12.685068 +Run started:2024-11-15 03:09:38.348077 Test results: >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. @@ -36,10 +36,10 @@ Test results: Severity: Medium Confidence: High CWE: CWE-502 (https://cwe.mitre.org/data/definitions/502.html) More Info: https://bandit.readthedocs.io/en/1.7.7/blacklists/blacklist_calls.html#b301-pickle - Location: ./sdmetrics/reports/base_report.py:309:21 -308 with open(filepath, 'rb') as f: -309 report = pickle.load(f) -310 if current_version != report._package_version: + Location: ./sdmetrics/reports/base_report.py:310:21 +309 with open(filepath, 'rb') as f: +310 report = pickle.load(f) +311 if current_version != report._package_version: -------------------------------------------------- >> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. @@ -89,7 +89,7 @@ Test results: Location: ./sdmetrics/single_table/privacy/util.py:72:4 71 dist = 0 72 assert len(target) == len(test), ( -73 'Tuples must have the same length in the' 'calculation of hamming distance!' +73 'Tuples must have the same length in thecalculation of hamming distance!' 74 ) 75 @@ -117,7 +117,7 @@ Test results: -------------------------------------------------- Code scanned: - Total lines of code: 9225 + Total lines of code: 9453 Total lines skipped (#nosec): 0 Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0