Make WordPress Core

Changeset 45455


Ignore:
Timestamp:
05/28/2019 12:25:42 AM (6 years ago)
Author:
azaozz
Message:

Build tools, WPCS: disable line ending check when running phpcs but fix them to \n whit phpcfb. Fixes (erroneous) reports on Windows about improper line endings in all files. They are managed directly by Git or SVN.

Fixes #47411.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r44955 r45455  
    155155    </rule>
    156156
     157    <!-- Exclude checking of line endings when reporting errors, but fix them when running phpcbf.
     158        Git and SVN manage these pretty well cross-platform as "native".
     159        Whitelist configuration files. -->
    157160    <rule ref="Generic.Files.LineEndings">
    158161        <exclude-pattern>/wp-config\.php</exclude-pattern>
    159162        <exclude-pattern>/wp-config-sample\.php</exclude-pattern>
     163        <exclude phpcs-only="true" name="Generic.Files.LineEndings"/>
    160164    </rule>
    161165
Note: See TracChangeset for help on using the changeset viewer.