From 4f15894f86afbd40601b2ef4e439a6a132fe22fc Mon Sep 17 00:00:00 2001 From: Raissa North Date: Wed, 31 Jan 2018 10:08:07 +1300 Subject: [PATCH] Add codesniffer ruleset --- .travis.yml | 2 +- phpcs.xml.dist | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 phpcs.xml.dist diff --git a/.travis.yml b/.travis.yml index b5dc03e4..3324659a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ before_script: script: - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi - if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi - - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=vendor/silverstripe/framework/phpcs.xml.dist src tests *.php --ignore=host-map.php; fi + - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src tests *.php --ignore=host-map.php; fi - if [[ $BEHAT_TEST ]]; then vendor/bin/behat @subsites; fi after_success: diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 00000000..b8f7d59d --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,11 @@ + + + CodeSniffer ruleset for SilverStripe coding conventions. + + + + + + + +