mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@45455 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -154,9 +154,13 @@
|
||||
<exclude-pattern>/wp-tests-config-sample\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Exclude checking of line endings when reporting errors, but fix them when running phpcbf.
|
||||
Git and SVN manage these pretty well cross-platform as "native".
|
||||
Whitelist configuration files. -->
|
||||
<rule ref="Generic.Files.LineEndings">
|
||||
<exclude-pattern>/wp-config\.php</exclude-pattern>
|
||||
<exclude-pattern>/wp-config-sample\.php</exclude-pattern>
|
||||
<exclude phpcs-only="true" name="Generic.Files.LineEndings"/>
|
||||
</rule>
|
||||
|
||||
<!-- WPCS1620: template.php isn't a template tag file. -->
|
||||
|
||||
Reference in New Issue
Block a user