Only use root editorconfig, allow warnings in travis
This commit is contained in:
@@ -9,3 +9,9 @@ end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.php]
|
||||
indent_size = 4
|
||||
|
||||
[templates/**.php]
|
||||
indent_size = 2
|
||||
|
||||
@@ -43,5 +43,5 @@ install:
|
||||
|
||||
script:
|
||||
- npm run build
|
||||
- phpcs --report=summary
|
||||
- phpcs -n
|
||||
- phpmd src text cleancode,codesize,controversial,design,naming,unusedcode
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (defined('ABSPATH')) {
|
||||
update_option('template', get_option('template') . '/templates');
|
||||
update_option('template', get_option('template') . '/templates');
|
||||
}
|
||||
die("Kind Regards,\nRoots");
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
<description>Roots Coding Standards</description>
|
||||
|
||||
<!-- Scan these files -->
|
||||
<file>templates</file>
|
||||
<file>functions.php</file>
|
||||
<file>index.php</file>
|
||||
<file>src</file>
|
||||
<file>templates</file>
|
||||
|
||||
<!-- Show colors in console -->
|
||||
<arg value="-colors"/>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# editorconfig.org
|
||||
|
||||
root = false
|
||||
|
||||
[*.php]
|
||||
indent_size = 4
|
||||
Reference in New Issue
Block a user