26 Star 122 Fork 16

hunzhiwange/QueryPHP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.php-cs-fixer.dist.php 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
小牛New 提交于 2024-05-09 09:49 +08:00 . 提交代码
<?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')
)
;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/dyhb/queryphp.git
git@gitee.com:dyhb/queryphp.git
dyhb
queryphp
QueryPHP
master

搜索帮助