From 3fede9e2d990a0ee71b6c2b0686e75dd5f36eb7d Mon Sep 17 00:00:00 2001 From: JasperCraeghs <28319872+JasperCraeghs@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:42:02 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20melexis/?= =?UTF-8?q?warnings-plugin@11b779997c15bc736cf302fd3090287471b06e9c=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _modules/index.html | 6 +- _modules/mlx/warnings/exceptions.html | 6 +- _modules/mlx/warnings/junit_checker.html | 6 +- _modules/mlx/warnings/polyspace_checker.html | 16 ++- _modules/mlx/warnings/regex_checker.html | 16 ++- _modules/mlx/warnings/robot_checker.html | 8 +- _modules/mlx/warnings/warnings.html | 9 +- _modules/mlx/warnings/warnings_checker.html | 15 ++- _static/documentation_options.js | 2 +- authors.html | 6 +- contributing.html | 6 +- design.html | 55 ++++++++-- genindex.html | 18 +++- index.html | 6 +- installation.html | 6 +- objects.inv | Bin 1144 -> 1159 bytes output.json | 36 +++---- output.txt | 8 +- py-modindex.html | 6 +- readme.html | 106 ++++++++++--------- search.html | 6 +- searchindex.js | 2 +- 22 files changed, 204 insertions(+), 141 deletions(-) diff --git a/_modules/index.html b/_modules/index.html index 8c0c5341..08a6d773 100644 --- a/_modules/index.html +++ b/_modules/index.html @@ -4,7 +4,7 @@
-super().__init__(verbose) self._cq_description_template = Template('Polyspace: $check') + @property + def cq_findings(self): + ''' List[dict]: list of code quality findings''' + for checker in self.checkers: + self._cq_findings.extend(checker.cq_findings) + return self._cq_findings + @property def counted_warnings(self): - ''' List: list of counted warnings (str) ''' + '''List[str]: list of counted warnings''' all_counted_warnings = [] for checker in self.checkers: all_counted_warnings.extend(checker.counted_warnings) @@ -196,7 +203,6 @@
check_value = value.lower() checker = PolyspaceFamilyChecker(family_value, column_name, check_value, verbose=self.verbose) checker.parse_config(check) - checker.cq_findings = self.cq_findings # share object with sub-checkers self.checkers.append(checker) if not (column_name and check_value): raise ValueError( @@ -377,7 +383,7 @@
@property
def counted_warnings(self):
- ''' List: list of counted warnings (str) '''
+ ''' List[str]: list of counted warnings'''
all_counted_warnings = []
for checker in self.checkers.values():
all_counted_warnings.extend(checker.counted_warnings)
return all_counted_warnings
+ @property
+ def cq_findings(self):
+ ''' List[dict]: list of code quality findings'''
+ for checker in self.checkers.values():
+ self._cq_findings.extend(checker.cq_findings)
+ return self._cq_findings
+
@property
def cq_description_template(self):
''' Template: string.Template instance based on the configured template string '''
@@ -243,7 +250,6 @@ Source code for mlx.warnings.regex_checker
checker.maximum = int(maximum)
if minimum := checker_config.get("min", 0):
checker.minimum = int(minimum)
- checker.cq_findings = self.cq_findings # share object with sub-checkers
self.checkers[classification_key] = checker
else:
print(f"WARNING: Unrecognized classification {classification!r}")
@@ -432,7 +438,7 @@ Navigation
diff --git a/_modules/mlx/warnings/robot_checker.html b/_modules/mlx/warnings/robot_checker.html
index 12233d34..17207000 100644
--- a/_modules/mlx/warnings/robot_checker.html
+++ b/_modules/mlx/warnings/robot_checker.html
@@ -4,7 +4,7 @@
- mlx.warnings.robot_checker — warning-plugin 5.5.0 documentation
+ mlx.warnings.robot_checker — warning-plugin 5.5.1 documentation
@@ -30,7 +30,7 @@
Navigation
-
@@ -62,7 +62,7 @@ Source code for mlx.warnings.robot_checker
@property
def counted_warnings(self):
- ''' List: list of counted warnings (str) '''
+ '''List[str]: list of counted warnings'''
all_counted_warnings = []
for checker in self.checkers:
all_counted_warnings.extend(checker.counted_warnings)
@@ -262,7 +262,7 @@ Navigation
diff --git a/_modules/mlx/warnings/warnings.html b/_modules/mlx/warnings/warnings.html
index f1499469..6c7bbdb4 100644
--- a/_modules/mlx/warnings/warnings.html
+++ b/_modules/mlx/warnings/warnings.html
@@ -4,7 +4,7 @@
- mlx.warnings.warnings — warning-plugin 5.5.0 documentation
+ mlx.warnings.warnings — warning-plugin 5.5.1 documentation
@@ -30,7 +30,7 @@
Navigation
-
@@ -269,6 +269,7 @@ Source code for mlx.warnings.warnings
Args:
out_file (str): Location for the output file
'''
+ Path(out_file).parent.mkdir(parents=True, exist_ok=True)
with open(out_file, 'w', encoding='utf-8', newline='\n') as open_file:
for checker in self.activated_checkers.values():
open_file.write("\n".join(checker.counted_warnings) + "\n")
@@ -283,6 +284,8 @@ Source code for mlx.warnings.warnings
for checker in self.activated_checkers.values():
results.extend(checker.cq_findings)
content = json.dumps(results, indent=4, sort_keys=False)
+
+ Path(out_file).parent.mkdir(parents=True, exist_ok=True)
with open(out_file, 'w', encoding='utf-8', newline='\n') as open_file:
open_file.write(f"{content}\n")