From 9ff286964b68e3acdc63e64ab5ee5f5ba19734d1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 27 Feb 2018 10:34:58 +0100 Subject: [PATCH] :wrench: PHPCS: specify the minimum supported WP version A number of additional sniffs have been added to WPCS which all use the `minimum_supported_version` property to know which WP version to check against. As setting these properties for each sniff becomes tedious and would necessitate the ruleset to be adjusted each time a new sniff which uses that property becomes available, WPCS now offers a (forward-compatible) way to set the minimum supported WP version for all sniffs in one go. --- phpcs.xml.dist | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index bc7a1eec..2fe41af1 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -70,14 +70,10 @@ - - - - - - +