diff --git a/core.phpcs.xml.dist b/core.phpcs.xml.dist
index 52b35c3c1a98a97e7e5b3385aa20167e746debc0..6a7b9e2934734da9198eabcb7957f567e427e844 100644
--- a/core.phpcs.xml.dist
+++ b/core.phpcs.xml.dist
@@ -48,6 +48,7 @@
   <rule ref="Drupal.Commenting.ClassComment.Missing">
     <include-pattern>*/Functional/*</include-pattern>
     <include-pattern>*/tests/modules/*</include-pattern>
+    <include-pattern>./core/tests/Drupal/Tests/Core/*</include-pattern>
   </rule>
   <rule ref="Drupal.Commenting.DataTypeNamespace"/>
   <rule ref="Drupal.Commenting.Deprecated"/>