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$ +