From a61d9a784763c8231549f964a9c3d29a0b8b00a0 Mon Sep 17 00:00:00 2001 From: salman2013 Date: Mon, 9 Dec 2024 18:33:40 +0500 Subject: [PATCH] fix: fix the lint errors --- scripts/xsslint/xss_linter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/xsslint/xss_linter.py b/scripts/xsslint/xss_linter.py index 40a8526d1ac..b32c54aa5cd 100755 --- a/scripts/xsslint/xss_linter.py +++ b/scripts/xsslint/xss_linter.py @@ -164,8 +164,8 @@ def _check_violations(options, results): any(key not in ("total", "rules") for key in violation_thresholds.keys()): print('xsslint') fail_quality("""FAILURE: Thresholds option "{thresholds_option}" was not supplied using proper format.\n""" - """Here is a properly formatted example, '{{"total":100,"rules":{{"javascript-escape":0}}}}' """ - """with property names in double-quotes.""".format(thresholds_option=thresholds_option)) + """Here is a properly formatted example, '{{"total":100,"rules":{{"javascript-escape":0}}}}' """ + """with property names in double-quotes.""".format(thresholds_option=thresholds_option)) try: metrics_str = "Number of {xsslint_script} violations: {num_violations}\n".format( @@ -213,8 +213,8 @@ def _check_violations(options, results): if error_message: print('xsslint') fail_quality("FAILURE: XSSLinter Failed.\n{error_message}\n" - "run the following command to hone in on the problem:\n" - " ./scripts/xss-commit-linter.sh -h".format(error_message=error_message)) + "run the following command to hone in on the problem:\n" + "./scripts/xss-commit-linter.sh -h".format(error_message=error_message)) else: print("successfully run xsslint")