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

OSCHINA-MIRROR/guanguans-laravel-soar

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
phpstan.neon 4.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
guanguans Отправлено 12.05.2025 22:20 55daaa1
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/shipmonk/dead-code-detector/rules.neon
# - vendor/staabm/phpstan-todo-by/extension.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:
- config/
- src/
scanFiles:
- vendor/composer/InstalledVersions.php
excludePaths:
- tests/Fixtures/
- *.blade.php
level: max
# level: 10
tmpDir: .build/phpstan/
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
# errorFormat: symplify
errorFormat: friendly
friendly:
lineBefore: 3
lineAfter: 3
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
treatPhpDocTypesAsCertain: false
strictRules:
# https://github.com/phpstan/phpstan-strict-rules
allRules: true
booleansInConditions: false
disallowedShortTernary: false
cognitive_complexity:
class: 42
function: 8
dependency_tree: 150
dependency_tree_types:
# only these explicit types are checked, nothing else
# - Rector\Contract\Rector\RectorInterface
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'
ignoreErrors:
# - identifier: cast.string
# - identifier: encapsedStringPart.nonString
# - identifier: logicalAnd.resultUnused
# - identifier: symplify.noDynamicName
# - identifier: typePerfect.noMixedMethodCaller
- identifier: argument.templateType
- identifier: argument.type
- identifier: binaryOp.invalid
- identifier: method.nonObject
- identifier: missingType.generics
- identifier: missingType.iterableValue
- identifier: return.type
- identifier: return.void
- identifier: shipmonk.deadMethod
- identifier: symplify.explicitTraitSuffixName
- identifier: symplify.requireExceptionNamespace
- '#^Call to an undefined static method Guanguans\\LaravelSoar\\Facades\\Soar\:\:get.*\(\)\.$#'
- '#^Call to method label\(\) on an unknown class Spatie\\.*\\Ray\.$#'
- '#^Function clock not found\.$#'
-
identifier: symplify.explicitInterfaceSuffixName
path: src/Contracts/
-
message: '#^Calling env\(\) is forbidden, use config\(\) instead\.$#'
paths:
- config/soar.php
- src/Support/helpers.php
-
messages:
- '#^Method Guanguans\\LaravelSoar\\Mixins\\QueryBuilderMixin\:\:.*\(\) invoked with \d parameters?, 0 required\.$#'
path: src/Mixins/

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

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

1
https://api.gitlife.ru/oschina-mirror/guanguans-laravel-soar.git
git@api.gitlife.ru:oschina-mirror/guanguans-laravel-soar.git
oschina-mirror
guanguans-laravel-soar
guanguans-laravel-soar
master