1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/dyhb-queryphp

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
.php-cs-fixer.dist.php 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
XiangMin Liu Отправлено 09.05.2024 04:49 f67d65d
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
// https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.14.3/.php-cs-fixer.dist.php
return (new Config())
->setRules([
'@PHP74Migration' => true,
'@PHP74Migration:risky' => true,
'@PHPUnit100Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP81Migration' => true,
'@PHP80Migration:risky' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], // one should use PHPUnit built-in method instead
'heredoc_indentation' => false, // TODO switch on when # of PR's is lower
'modernize_strpos' => true, // needs PHP 8+ or polyfill
'no_useless_concat_operator' => false, // TODO switch back on when the `src/Console/Application.php` no longer needs the concat
'use_arrow_functions' => false, // TODO switch on when # of PR's is lower
'php_unit_strict' => false,
'php_unit_test_class_requires_covers' => false,
'strict_comparison' => false,
'strict_param' => false,
'php_unit_internal_class' => false,
])
->setRiskyAllowed(true)
->setFinder(
Finder::create()
->append([__FILE__])
->in(__DIR__.'/app')
->in(__DIR__.'/tests')
->in(__DIR__.'/www')
->in(__DIR__.'/config')
->in(__DIR__.'/database')
)
;

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/dyhb-queryphp.git
git@api.gitlife.ru:oschina-mirror/dyhb-queryphp.git
oschina-mirror
dyhb-queryphp
dyhb-queryphp
master