Only use root editorconfig, allow warnings in travis

This commit is contained in:
QWp6t
2015-12-29 14:27:17 -08:00
committed by Ben Word
parent fe659f4c58
commit f598ca9a0b
5 changed files with 10 additions and 9 deletions

View File

@@ -9,3 +9,9 @@ end_of_line = lf
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
[*.php]
indent_size = 4
[templates/**.php]
indent_size = 2

View File

@@ -43,5 +43,5 @@ install:
script: script:
- npm run build - npm run build
- phpcs --report=summary - phpcs -n
- phpmd src text cleancode,codesize,controversial,design,naming,unusedcode - phpmd src text cleancode,codesize,controversial,design,naming,unusedcode

View File

@@ -1,6 +1,6 @@
<?php <?php
if (defined('ABSPATH')) { if (defined('ABSPATH')) {
update_option('template', get_option('template') . '/templates'); update_option('template', get_option('template') . '/templates');
} }
die("Kind Regards,\nRoots"); die("Kind Regards,\nRoots");

View File

@@ -3,9 +3,10 @@
<description>Roots Coding Standards</description> <description>Roots Coding Standards</description>
<!-- Scan these files --> <!-- Scan these files -->
<file>templates</file>
<file>functions.php</file> <file>functions.php</file>
<file>index.php</file>
<file>src</file> <file>src</file>
<file>templates</file>
<!-- Show colors in console --> <!-- Show colors in console -->
<arg value="-colors"/> <arg value="-colors"/>

View File

@@ -1,6 +0,0 @@
# editorconfig.org
root = false
[*.php]
indent_size = 4