diff --git a/config/exclusions/php.yaml b/config/exclusions/php.yaml new file mode 100644 index 00000000..e73d552f --- /dev/null +++ b/config/exclusions/php.yaml @@ -0,0 +1,5 @@ +exclusions: + - id: Exclusions.Test + name: Exclude test source code + patterns: + - "(.*(?i)Tests/.*)|/.*Test.php" 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: