From 60071168e585a7e7c9e2746c45a86bed675e5016 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 27 Feb 2018 10:40:49 +0100 Subject: [PATCH] :wrench: PHPCS: add configuration for array double arrow alignment This configuration makes the sniff less finicky when all array items are multi-line. It allow allows for cleaner diffs as an array will not need to be reformatted when the array item with the largest key has been removed. Refs: * https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#array-alignment-allow-for-new-lines * https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#array-alignment-allow-non-exact-alignment * https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#array-alignment-maximum-column --- phpcs.xml.dist | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 2fe41af1..2c4eabf2 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -75,6 +75,17 @@ as set in the "Requires at least" tag in the readme.txt file. --> + + + + + + + + + + +