diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index 98ef40fecd0f7a8c37051aa5bfc2b0f5ef9db0d7..292e990184b96da3991248992753b68c84d88d49 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -7,7 +7,7 @@
 	<exclude-pattern>/vendor/</exclude-pattern>
 	<exclude-pattern>/node_modules/</exclude-pattern>
 	<exclude-pattern>/tests/*</exclude-pattern>
-	<exclude>tag-dropdown-widget.php</exclude>
+	<exclude>/tag-dropdown-widget.php</exclude>
 
 	<!-- How to scan -->
 	<!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->