From aaa3256b3f1a9cab52cdaf3d8f802eca76fbf4c2 Mon Sep 17 00:00:00 2001 From: Suchakra Sharma Date: Wed, 12 Jun 2024 20:05:07 -0400 Subject: [PATCH 1/3] file exclusions for php --- config/exclusions/php.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 config/exclusions/php.yaml diff --git a/config/exclusions/php.yaml b/config/exclusions/php.yaml new file mode 100644 index 00000000..6b620506 --- /dev/null +++ b/config/exclusions/php.yaml @@ -0,0 +1,5 @@ +exclusions: + - id: Exclusions.Test + name: Exclude test source code + patterns: + - "(.*/Tests/.*)|/.*Test.php" From 266e736d7b4108e1c8e398f5d129d9b149ca5189 Mon Sep 17 00:00:00 2001 From: Suchakra Sharma Date: Thu, 13 Jun 2024 08:10:30 -0400 Subject: [PATCH 2/3] update path --- config/exclusions/php.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/exclusions/php.yaml b/config/exclusions/php.yaml index 6b620506..e73d552f 100644 --- a/config/exclusions/php.yaml +++ b/config/exclusions/php.yaml @@ -2,4 +2,4 @@ exclusions: - id: Exclusions.Test name: Exclude test source code patterns: - - "(.*/Tests/.*)|/.*Test.php" + - "(.*(?i)Tests/.*)|/.*Test.php" From 32c93df51772f773c6e3053c0239747af4d8d07d Mon Sep 17 00:00:00 2001 From: Suchakra Sharma Date: Mon, 17 Jun 2024 10:19:14 -0400 Subject: [PATCH 3/3] [PHP] fix regex for segment (#469) --- rules/sinks/third_parties/sdk/segment/php.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/sinks/third_parties/sdk/segment/php.yaml b/rules/sinks/third_parties/sdk/segment/php.yaml index 6b7b05f2..7fb95948 100644 --- a/rules/sinks/third_parties/sdk/segment/php.yaml +++ b/rules/sinks/third_parties/sdk/segment/php.yaml @@ -9,5 +9,5 @@ sinks: domains: - "segment.com" patterns: - - "(?i).*(segment).*" + - "(?i)(Segment\\\\Segment).*" tags: