From 53fd08d3b027e04544b322038c4d9656d9d330a0 Mon Sep 17 00:00:00 2001 From: mpenning Date: Sun, 15 Oct 2023 08:36:58 -0500 Subject: [PATCH] Add SonarCloud exception for S5843 --- ciscoconfparse/ccp_util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ciscoconfparse/ccp_util.py b/ciscoconfparse/ccp_util.py index e9811aee..dcf5c731 100644 --- a/ciscoconfparse/ccp_util.py +++ b/ciscoconfparse/ccp_util.py @@ -26,11 +26,13 @@ # Disable SonarCloud warnings in this file # - S1192: Define a constant instead of duplicating this literal # - S1313: Disable alerts on magic IPv4 / IPv6 addresses +# - S5843: Avoid regex complexity # - S5852: Slow regex are security-sensitive # - S6395: Unwrap this unnecessarily grouped regex subpattern. ############################################################################## #pragma warning disable S1192 #pragma warning disable S1313 +#pragma warning disable S5843 #pragma warning disable S5852 #pragma warning disable S6395 @@ -3919,5 +3921,6 @@ def compressed_str(self): ############################################################################## #pragma warning restore S1192 #pragma warning restore S1313 +#pragma warning restore S5843 #pragma warning restore S5852 #pragma warning restore S6395