WordPress.org

Make WordPress Core

Ticket #46869: 46869.1.diff

File 46869.1.diff, 985 bytes (added by azaozz, 6 months ago)
  • phpcs.xml.dist

     
    187187                <exclude-pattern>/tests/phpunit/tests/*</exclude-pattern>
    188188        </rule>
    189189
     190        <!-- Limit the number of spaces used for padding when aligning equal signs (doesn't apply to associative arrays). -->
     191        <rule ref="Generic.Formatting.MultipleStatementAlignment">
     192                <properties>
     193                        <property name="maxPadding" value="10" />
     194                </properties>
     195        </rule>
     196
     197        <!-- Do not align `=>` across different dimensions of multidimensional associative arrays. -->
     198        <rule ref="WordPress.Arrays.MultipleStatementAlignment">
     199                <properties>
     200                        <property name="alignMultilineItems" value="never" />
     201                </properties>
     202        </rule>
     203
     204        <!-- ? -->
     205        <rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned">
     206                <properties>
     207                        <property name="maxColumn" value="20"/>
     208                </properties>
     209        </rule>
     210
    190211</ruleset>