diff --git a/composer.local.0.finc.json b/composer.local.0.finc.json index 92cc3f7bbfa06e0e9dca062c5bbbae0ab3f1a64c..87f48624f598df40c8c23365e728c7e1970d3b7c 100644 --- a/composer.local.0.finc.json +++ b/composer.local.0.finc.json @@ -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" }, diff --git a/tests/finc/.php_cs b/tests/finc/.php_cs deleted file mode 100644 index 2c82e17e1cf92a14c716999c5a501ec5eba06f19..0000000000000000000000000000000000000000 --- a/tests/finc/.php_cs +++ /dev/null @@ -1,15 +0,0 @@ -<?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); diff --git a/tests/finc/phpcs.xml b/tests/finc/phpcs.xml deleted file mode 100644 index 59d7e42200f68f59613d2ed58c30bb4772bfbed0..0000000000000000000000000000000000000000 --- a/tests/finc/phpcs.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?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>