Skip to content

Commit

Permalink
fix: fix the lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2013 committed Dec 9, 2024
1 parent bfc17d7 commit a61d9a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/xsslint/xss_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit a61d9a7

Please sign in to comment.