CodeIgniter4/phpstan.neon.dist
kenjis 114f3ce79c
Merge pull request #8646 from kenjis/add-phpstan-check-tests
chore: add PHPStan checking to tests/
2024-03-26 08:21:21 +09:00

43 lines
979 B
Plaintext

services:
-
class: Utils\PHPStan\CheckUseStatementsAfterLicenseRule
tags:
- phpstan.rules.rule
includes:
- phpstan-baseline.php
parameters:
phpVersion: 80100
tmpDir: build/phpstan
level: 6
bootstrapFiles:
- phpstan-bootstrap.php
paths:
- admin/starter/tests
- app
- system
- tests
- utils/PHPStan
excludePaths:
- app/Views/errors/cli/*
- app/Views/errors/html/*
- system/Commands/Generators/Views/*
- system/Debug/Toolbar/Views/toolbar.tpl.php
- system/Images/Handlers/GDHandler.php
- system/Test/Filters/CITestStreamFilter.php
- system/ThirdParty/*
- system/Validation/Views/single.php
- tests/system/View/Views/*
scanDirectories:
- system/Helpers
checkGenericClassInNonGenericObjectType: false
checkMissingCallableSignature: true
treatPhpDocTypesAsCertain: false
strictRules:
allRules: false
disallowedLooseComparison: true
booleansInConditions: true
disallowedConstructs: true
matchingInheritedMethodNames: true