mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-11-25 19:16:10 +01:00
TASK: Provide phpcs integration for CGL
Use common accepted PSR2 for CGL checks.
This commit is contained in:
parent
9b710aa921
commit
d1bc4870f7
2 changed files with 25 additions and 1 deletions
|
@ -12,9 +12,16 @@
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.0.0 <=7.2.99",
|
"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": {
|
"scripts": {
|
||||||
|
"lint": [
|
||||||
|
"./vendor/bin/phpcs"
|
||||||
|
],
|
||||||
"post-install-cmd": [
|
"post-install-cmd": [
|
||||||
"npm install"
|
"npm install"
|
||||||
]
|
]
|
||||||
|
|
17
phpcs.xml.dist
Normal file
17
phpcs.xml.dist
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<ruleset name="cgl">
|
||||||
|
<description>The coding standard for this extension.</description>
|
||||||
|
|
||||||
|
<file>./Classes/</file>
|
||||||
|
|
||||||
|
<!-- Set default settings -->
|
||||||
|
<arg value="sp"/>
|
||||||
|
<arg name="colors"/>
|
||||||
|
<arg name="encoding" value="utf-8" />
|
||||||
|
<arg name="extensions" value="php" />
|
||||||
|
|
||||||
|
<rule ref="PSR2">
|
||||||
|
<!-- As it does not work with new array syntax. -->
|
||||||
|
<exclude name="Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket" />
|
||||||
|
</rule>
|
||||||
|
</ruleset>
|
Loading…
Reference in a new issue