From dd8f0146ea2b0496db56be3e8afb90e82e508c7c Mon Sep 17 00:00:00 2001 From: Mojmir Fendek Date: Fri, 22 Dec 2023 13:10:40 +1300 Subject: [PATCH] Fixes. --- composer.json | 4 ++++ phpcs.xml.dist | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 phpcs.xml.dist diff --git a/composer.json b/composer.json index cbfde69..095dc2c 100644 --- a/composer.json +++ b/composer.json @@ -32,6 +32,10 @@ "dev-2": "2.x-dev" } }, + "scripts": { + "lint": "phpcs src/ tests/php/", + "lint-clean": "phpcbf src/ tests/php/" + }, "autoload": { "psr-4": { "Terraformers\\RichFilterHeader\\": "src/", diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..980215a --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,32 @@ + + + CodeSniffer ruleset for SilverStripe coding conventions. + + src + tests + + + + + + + + + + + + + + + + + + + + + + + + + */SSTemplateParser.php$ +