Skip to content

Commit

Permalink
Add php-cs-fixer-risky set
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick committed Aug 12, 2020
1 parent 440934a commit 3bdabe9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":366:{a:2:{s:7:"defects";a:1:{s:51:"Zing\CodingStandard\Tests\StyleTest::testClassFixed";i:3;}s:5:"times";a:4:{s:50:"Zing\CodingStandard\Tests\StyleTest::testFileFixed";d:0.003;s:51:"Zing\CodingStandard\Tests\StyleTest::testClassFixed";d:0;s:51:"Zing\CodingStandard\Tests\StyleTest::testTraitFixed";d:0;s:55:"Zing\CodingStandard\Tests\StyleTest::testInterfaceFixed";d:0;}}}
37 changes: 37 additions & 0 deletions config/set/php-cs-fixer/php-cs-fixer-risky.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Fixer\ClassNotation\FinalInternalClassFixer;
use PhpCsFixer\Fixer\Comment\CommentToPhpdocFixer;
use PhpCsFixer\Fixer\FunctionNotation\NoUnreachableDefaultArgumentValueFixer;
use PhpCsFixer\Fixer\LanguageConstruct\NoUnsetOnPropertyFixer;
use PhpCsFixer\Fixer\Operator\LogicalOperatorsFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitSetUpTearDownVisibilityFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestCaseStaticMethodCallsFixer;
use PhpCsFixer\Fixer\Strict\StrictComparisonFixer;
use PhpCsFixer\Fixer\Strict\StrictParamFixer;
use PhpCsFixer\Fixer\StringNotation\StringLineEndingFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__ . '/../../../vendor/symplify/easy-coding-standard/config/set/symfony-risky.php', null, true);

$containerConfigurator->import(__DIR__ . '/../../../../../symplify/easy-coding-standard/config/set/symfony-risky.php', null, true);

$services = $containerConfigurator->services();
$services->set(CommentToPhpdocFixer::class);
$services->set(FinalInternalClassFixer::class);
$services->set(LogicalOperatorsFixer::class);
$services->set(NoUnreachableDefaultArgumentValueFixer::class);
$services->set(NoUnsetOnPropertyFixer::class);
$services->set(PhpUnitSetUpTearDownVisibilityFixer::class);
$services->set(PhpUnitStrictFixer::class);
$services->set(PhpUnitTestAnnotationFixer::class);
$services->set(PhpUnitTestCaseStaticMethodCallsFixer::class);
$services->set(StrictComparisonFixer::class);
$services->set(StrictParamFixer::class);
$services->set(StringLineEndingFixer::class);
};

0 comments on commit 3bdabe9

Please sign in to comment.