From 5433460af56a4ae9ed9cfdbfd9bb0c0ec7899cb3 Mon Sep 17 00:00:00 2001 From: Mo Langning <133737702+molangning@users.noreply.github.com> Date: Fri, 5 Apr 2024 08:28:04 +0800 Subject: [PATCH 1/2] Update validators.py --- .bin/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/validators.py b/.bin/validators.py index 67b58f56..4233fff4 100755 --- a/.bin/validators.py +++ b/.bin/validators.py @@ -312,7 +312,7 @@ else: warn_msg='\n'.join(results["warn"]) else: warn_msg="There are no warnings for this check!" - error_text.append(FORMATTED_OUTPUT_FORMAT%(checker,description,warn_msg,error_msg)) + error_text.append(FORMATTED_OUTPUT_FORMAT%(checker,description,error_msg,warn_msg)) error_text='\n- - -\n'.join(error_text) @@ -320,4 +320,4 @@ open(STEP_SUMMARY_LOCATION,"w").write(SUMMARY_FORMAT%(table_content,error_text,f if not all_pass: print_err(".bin/validators.py","[!] Not all checks passed.") - exit(2) \ No newline at end of file + exit(2) From 8b020ac007a669659193ada570ce1e2105d1e829 Mon Sep 17 00:00:00 2001 From: Mo Langning <133737702+molangning@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:00:33 +0800 Subject: [PATCH 2/2] Update validators.py --- .bin/validators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bin/validators.py b/.bin/validators.py index 4233fff4..8f96395b 100755 --- a/.bin/validators.py +++ b/.bin/validators.py @@ -26,13 +26,13 @@ FORMATTED_OUTPUT_FORMAT=""" - - - -Errors +Warnings ``` %s ``` -Warnings +Errors ``` %s @@ -312,7 +312,7 @@ else: warn_msg='\n'.join(results["warn"]) else: warn_msg="There are no warnings for this check!" - error_text.append(FORMATTED_OUTPUT_FORMAT%(checker,description,error_msg,warn_msg)) + error_text.append(FORMATTED_OUTPUT_FORMAT%(checker,description,warn_msg,error_msg)) error_text='\n- - -\n'.join(error_text)