Skip to content
Snippets Groups Projects
Commit 58c9910d authored by Sebastian Kehr's avatar Sebastian Kehr :rowboat_tone2: Committed by Dorian Merz
Browse files

refs #16853 [master-v5] drop custom code quality configuration

parent 403ccaf8
No related merge requests found
......@@ -10,7 +10,6 @@
"scripts": {
"post-install-cmd": ["@copy-themes-force", "@dump-modules"],
"post-update-cmd": ["@copy-themes-force", "@dump-modules"],
"phpcs-finc": "vendor/bin/phpcs --standard=tests/finc/phpcs.xml",
"copy-themes-force": "php devops/composer/themes.php --force",
"dump-modules": "ComposerEventHandlers\\Modules::dump"
},
......
<?php
$baseDir = realpath(__DIR__ . '/../../');
$finder = PhpCsFixer\Finder::create()->in("$baseDir/module/finc/src");
$cacheDir = "$baseDir/data/cache/.php_cs_cache";
if (!is_dir($cacheDir)) {
mkdir($cacheDir);
}
return PhpCsFixer\Config::create()
->setCacheFile("$cacheDir/.code.cache")
->setRiskyAllowed(true)
->setRules(['@PSR2' => true])
->setFinder($finder);
<?xml version="1.0"?>
<ruleset name="finc cs ruleset" namespace="finc\PHPCS">
<description>finc coding standards.</description>
<file>../../module/finc/src/</file>
<arg name="extensions" value="php"/>
<rule ref="PSR2" />
<rule ref="PEAR.Commenting.ClassComment" />
<rule ref="PEAR.Commenting.FileComment" />
<rule ref="Squiz.Commenting.FunctionComment.Missing"/>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamTag"/>
<rule ref="Squiz.Commenting.FunctionComment.MissingParamName"/>
<rule ref="Squiz.Commenting.FunctionComment.ParamNameNoMatch"/>
<rule ref="Squiz.Commenting.FunctionComment.IncorrectTypeHint"/>
<rule ref="Squiz.Commenting.FunctionComment.MissingReturn"/>
</ruleset>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment