From e3769884e1c5eb52595a689bb009d6e6e6aebfcf Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Mon, 26 Aug 2024 11:05:34 -0700 Subject: [PATCH] Fix for typo in pathlib rule example output (#570) A copy-and-paste error where PY036 should be PY037 for the pathlib loose permissions rule. Signed-off-by: Eric Brown --- precli/rules/python/stdlib/pathlib_loose_file_perm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precli/rules/python/stdlib/pathlib_loose_file_perm.py b/precli/rules/python/stdlib/pathlib_loose_file_perm.py index 8e27ba59..d7283221 100644 --- a/precli/rules/python/stdlib/pathlib_loose_file_perm.py +++ b/precli/rules/python/stdlib/pathlib_loose_file_perm.py @@ -38,7 +38,7 @@ ``` > precli tests/unit/rules/python/stdlib/pathlib/examples/pathlib_chmod_o755_binop_stat.py ⚠️ Warning on line 8 in tests/unit/rules/python/stdlib/pathlib/examples/pathlib_chmod_o755_binop_stat.py - PY036: Incorrect Permission Assignment for Critical Resource + PY037: Incorrect Permission Assignment for Critical Resource Mode '0o755' grants excessive permissions, potentially allowing unauthorized access or modification. ```