From cac65d8a546f00eb933bacb0d0f781cdd5e59c8c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 27 Feb 2018 10:44:25 +0100 Subject: [PATCH] :wrench: PHPCS: enable checking for globals being prefixed Everything which is defined in the global namespace should be prefixed to prevent conflicts with other themes and plugins. This snippet enables the sniff which verifies this and tells it which prefix to look for. --- phpcs.xml.dist | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 2c4eabf2..66317a71 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -86,6 +86,14 @@ + + + + + + + +