From ca9edb41c38ff5822d4c02af6cfe2cefd999a12a Mon Sep 17 00:00:00 2001 From: Anthony Birkett Date: Mon, 31 May 2021 14:28:32 +0100 Subject: [PATCH] Enable all CS Fixer rules, mask last Psalm errors. --- .php-cs-fixer.php | 36 +++++++++++++++++++++++++++++++----- Tests/Tests.php | 4 +++- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 249ecb6..a85e4b0 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -13,16 +13,42 @@ return (new PhpCsFixer\Config()) '@PhpCsFixer:risky' => true, '@Symfony' => true, '@Symfony:risky' => true, + '@PHP54Migration' => true, + '@PHP56Migration:risky' => true, + '@PHP70Migration' => true, + '@PHP70Migration:risky' => true, + '@PHP71Migration' => true, + '@PHP71Migration:risky' => true, + '@PHP73Migration' => true, + '@PHP74Migration' => true, + '@PHP74Migration:risky' => true, + '@PHP80Migration' => true, + '@PHP80Migration:risky' => true, + '@PHPUnit30Migration:risky' => true, + '@PHPUnit32Migration:risky' => true, + '@PHPUnit35Migration:risky' => true, + '@PHPUnit43Migration:risky' => true, + '@PHPUnit48Migration:risky' => true, + '@PHPUnit50Migration:risky' => true, + '@PHPUnit52Migration:risky' => true, + '@PHPUnit54Migration:risky' => true, + '@PHPUnit55Migration:risky' => true, + '@PHPUnit56Migration:risky' => true, + '@PHPUnit57Migration:risky' => true, + '@PHPUnit60Migration:risky' => true, + '@PHPUnit75Migration:risky' => true, + '@PHPUnit84Migration:risky' => true, 'concat_space' => false, 'native_constant_invocation' => false, 'native_function_invocation' => false, 'php_unit_fqcn_annotation' => false, 'php_unit_test_case_static_method_calls' => false, ]) - ->setFinder(PhpCsFixer\Finder::create() - ->exclude('vendor') - ->in('Examples') - ->in('SourceQuery') - ->in('Tests') + ->setFinder( + PhpCsFixer\Finder::create() + ->exclude('vendor') + ->in('Examples') + ->in('SourceQuery') + ->in('Tests') ) ; diff --git a/Tests/Tests.php b/Tests/Tests.php index cabaad3..c4d8af3 100644 --- a/Tests/Tests.php +++ b/Tests/Tests.php @@ -13,7 +13,9 @@ use xPaw\SourceQuery\SourceQuery; /** * @internal - * @coversNothing + * @covers \xPaw\SourceQuery\SourceQuery + * + * @psalm-suppress PropertyNotSetInConstructor */ final class Tests extends TestCase {