From d1bc4870f7d89293dfeb6bef02236238cb17540e Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 14 Dec 2017 22:30:49 +0100 Subject: [PATCH] TASK: Provide phpcs integration for CGL Use common accepted PSR2 for CGL checks. --- composer.json | 9 ++++++++- phpcs.xml.dist | 17 +++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 phpcs.xml.dist diff --git a/composer.json b/composer.json index ddbff51..02de3f6 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,16 @@ }, "require": { "php": ">=7.0.0 <=7.2.99", - "typo3/cms-core": ">=8.7.0,<8.9.99" + "typo3/cms-core": "^8.7.0", + "typo3/cms-form": "^8.7.0" + }, + "require-dev": { + "squizlabs/php_codesniffer": "^3.2.0" }, "scripts": { + "lint": [ + "./vendor/bin/phpcs" + ], "post-install-cmd": [ "npm install" ] diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..4bf161b --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,17 @@ + + + The coding standard for this extension. + + ./Classes/ + + + + + + + + + + + +