Permalink
Browse files

Add phpcs ruleset and editorconfig to leave in WP style

  • Loading branch information...
bueltge committed Jun 20, 2018
1 parent d277e5b commit c20c2b1ba0f27f1da45facf106896cd6054a525f
Showing with 31 additions and 0 deletions.
  1. +19 −0 .editorconfig
  2. +12 −0 phpcs.xml
View
@@ -0,0 +1,19 @@
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=tab
indent_size=4
[{.babelrc,composer.lock,.stylelintrc,jest.config,.eslintrc,*.json,*.jsb3,*.jsb2,*.bowerrc}]
indent_style=tab
indent_size=4
[{*.hphp,*.phtml,*.module,*.php,*.php5,*.php4,*.inc}]
indent_style=tab
tab_width=4
[*.scss]
indent_style=tab
indent_size=4
View
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<ruleset name="marksimple">
<description>Rules for WordPress Admin Style PHP projects</description>
<file>./inc</file>
<file>./WpAdminStyle.php</file>
<!-- Code Reviews Rules -->
<rule ref="WordPress"/>
</ruleset>

0 comments on commit c20c2b1

Please sign in to comment.