From 38ee7a76dad7caa37385a1f1b77357aa6c9ecdd4 Mon Sep 17 00:00:00 2001 From: Raissa North Date: Tue, 19 Dec 2017 15:36:59 +1300 Subject: [PATCH] ENHANCEMENT Check and make updates for SS4 compatability --- .travis.yml | 2 +- README.md | 13 ++++++++++--- lang/fi.yml | 2 +- lang/fi_FI.yml | 2 +- phpcs.xml.dist | 10 ++++++++++ 5 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 phpcs.xml.dist diff --git a/.travis.yml b/.travis.yml index 8ae5919..0d0a49f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,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 code/ tests/ ; fi + - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs code/ tests/ ; fi after_success: - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi diff --git a/README.md b/README.md index fc79789..af2b98e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # SpamProtection Module -[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-spamprotection.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-spamprotection) +[![Build Status](https://travis-ci.org/silverstripe/silverstripe-spamprotection.svg?)](https://travis-ci.org/silverstripe/silverstripe-spamprotection) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-spamprotection/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-spamprotection/?branch=master) [![Code Coverage](https://codecov.io/gh/silverstripe/silverstripe-spamprotection/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-spamprotection) ## Maintainer Contact @@ -13,7 +14,13 @@ ## Requirements -SilverStripe 4.0 or greater +SilverStripe 4.0+ + +**Note:** For SilverStripe 3.x, please use the [2.x release line](https://github.com/silverstripe/silverstripe-spamprotection/tree/2.0). + +## Install + +To install run `composer require silverstripe/spamprotection`. ## Documentation @@ -41,7 +48,7 @@ spam protection hooks with that protector. ```yaml --- -name: spamprotection +name: mycustomspamprotection --- SilverStripe\SpamProtection\Extension\FormSpamProtectionExtension: default_spam_protector: MollomSpamProtector diff --git a/lang/fi.yml b/lang/fi.yml index fc742b6..bc9c359 100644 --- a/lang/fi.yml +++ b/lang/fi.yml @@ -1,5 +1,5 @@ fi: - EditableSpamProtectionField: + SilverStripe\SpamProtection\EditableSpamProtectionField: PLURALNAME: 'Roskapostisuojauksen kentät' SINGULARNAME: 'Roskapostisuojauksen kenttä' SPAMFIELDMAPPING: 'Roskapostikentän kuvaus' diff --git a/lang/fi_FI.yml b/lang/fi_FI.yml index 9ef2693..cd10e41 100644 --- a/lang/fi_FI.yml +++ b/lang/fi_FI.yml @@ -1,5 +1,5 @@ fi_FI: - EditableSpamProtectionField: + SilverStripe\SpamProtection\EditableSpamProtectionField: PLURALNAME: 'Roskapostisuotimen kentät' SINGULARNAME: 'Roskapostisuotimen kenttä' SPAMFIELDMAPPING: 'Roskapostikentän kuvaus' diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..f6e295b --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,10 @@ + + + CodeSniffer ruleset for SilverStripe coding conventions. + + + + + + +