From 2d02544173c34c00c33398eb5240a0a78d6d8e2c Mon Sep 17 00:00:00 2001 From: QWp6t Date: Sun, 27 Dec 2015 23:13:05 -0800 Subject: [PATCH] Create new phpcs rules --- .travis.yml | 3 ++- phpcs-templates.xml | 43 ++++++++++++++++++++++++++++++++++++++++++ phpcs.xml | 17 +++++++++++++++++ ruleset.xml | 46 --------------------------------------------- 4 files changed, 62 insertions(+), 47 deletions(-) create mode 100644 phpcs-templates.xml create mode 100644 phpcs.xml delete mode 100644 ruleset.xml diff --git a/.travis.yml b/.travis.yml index fa0403e870..5d2ecc03c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,5 +43,6 @@ install: script: - npm run build - - phpcs --standard=ruleset.xml --extensions=php --ignore=node_modules,bower_components,vendor -n -s . + - phpcs --report=summary + - phpcs --report=summary --standard=phpcs-templates.xml -n - phpmd src text cleancode,codesize,controversial,design,naming,unusedcode diff --git a/phpcs-templates.xml b/phpcs-templates.xml new file mode 100644 index 0000000000..ce1fba4be7 --- /dev/null +++ b/phpcs-templates.xml @@ -0,0 +1,43 @@ + + + Roots Templates Coding Standards + + + templates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000000..d5fce9b533 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,17 @@ + + + Roots Coding Standards + + + + + + + + + + + + functions.php + src + diff --git a/ruleset.xml b/ruleset.xml deleted file mode 100644 index 20f716c97b..0000000000 --- a/ruleset.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - Roots Coding Standards - - - - - - - - - - - - - - - - - - - - - - templates/* - - - - - templates/* - - - - - - - - - - - - - - - -