diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 6825b266d6615982c4bf63fa8809d84a2b7e7bb4..f9a5812185cb1a851d7dbf7c439c493bef073725 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -160,8 +160,6 @@
 
   <!-- Drupal Practice sniffs -->
   <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis">
-    <exclude-pattern>*/core/tests/*</exclude-pattern>
-    <exclude-pattern>*/core/profiles/*/tests/*</exclude-pattern>
     <!-- Do not run this sniff on API files or transliteration data. -->
     <exclude-pattern>*.api.php</exclude-pattern>
     <exclude-pattern>core/lib/Drupal/Component/Transliteration/data/*.php</exclude-pattern>