6 Star 49 Fork 8

guanguans/soar-php

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
phpstan.neon 2.78 KB
一键复制 编辑 原始数据 按行查看 历史
includes:
- baselines/loader.neon
# - phpstan-baseline.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon
# - vendor/spaze/phpstan-disallowed-calls/extension.neon
# - vendor-bin/larastan/vendor/larastan/larastan/extension.neon
# - vendor/ekino/phpstan-banned-code/extension.neon
# - vendor/ergebnis/phpstan-rules/rules.neon
# - vendor/phpstan/phpstan-strict-rules/rules.neon
# - vendor/roave/no-floaters/rules.neon
- vendor/symplify/phpstan-rules/config/code-complexity-rules.neon
# - vendor/symplify/phpstan-rules/config/configurable-rules.neon
# - vendor/symplify/phpstan-rules/config/naming-rules.neon
# - vendor/symplify/phpstan-rules/config/static-rules.neon
# - vendor/symplify/phpstan-rules/config/symplify-rules.neon
# - vendor/symplify/phpstan-rules/config/doctrine-rules.neon
# - vendor/symplify/phpstan-rules/config/phpunit-rules.neon
# - vendor/symplify/phpstan-rules/config/rector-rules.neon
# - vendor/symplify/phpstan-rules/config/symfony-rules.neon
parameters:
paths:
- src/
scanFiles:
- vendor/composer/InstalledVersions.php
excludePaths:
- tests/Fixtures/
level: max
# level: 10
tmpDir: .build/phpstan
# errorFormat: symplify
errorFormat: friendly
friendly:
lineBefore: 3
lineAfter: 3
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
type_coverage:
declare: 100
param_type: 100
return_type: 100
constant_type: 100
property_type: 100
type_perfect:
narrow_param: true
narrow_return: true
null_over_false: true
no_mixed: false
no_mixed_property: true
no_mixed_caller: false
disallowedFunctionCalls:
-
function: 'env()'
message: 'use config() instead'
-
function: 'env_explode()'
message: 'use config() instead'
-
function: 'env_getcsv()'
message: 'use config() instead'
ignoreErrors:
- identifier: argument.templateType
# - identifier: cast.string
# - identifier: return.void
# - identifier: typePerfect.noMixedMethodCaller
- identifier: argument.type
- identifier: binaryOp.invalid
- identifier: encapsedStringPart.nonString
- identifier: logicalAnd.resultUnused
- identifier: method.nonObject
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: return.type
- identifier: symplify.noDynamicName
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/guanguans/soar-php.git
git@gitee.com:guanguans/soar-php.git
guanguans
soar-php
soar-php
master

搜索帮助