grano22 / code_quality_pack
Code quality toolset to help better maintain your code
dev-master
2025-03-29 08:28 UTC
Requires
- php: >=8.1
- phpstan/phpdoc-parser: ^2.1
- phpstan/phpstan: ^2.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.51
- guzzlehttp/guzzle: ^7.4
- phpro/grumphp: ^2.12
- phpunit/phpunit: ^10.3
- spatie/phpunit-snapshot-assertions: ^5.1
This package is auto-updated.
Last update: 2025-03-29 08:29:45 UTC
README
This package contains useful rules to support best practises in your codebase.
Actual roles in the package:
- Grano22\CodeQualityPack\ReasonRequiredInDeprecationRule - Checks if any deprecated annotation has no reason.
Installation
You can install the package via composer:
composer require --dev grano22/code_quality_pack
Usage
📂 phpstan.dist.neon
services: - class: Grano22\CodeQualityPack\ReasonRequiredInDeprecationRule arguments: - @PHPStan\PhpDocParser\Lexer\Lexer - @PHPStan\PhpDocParser\Parser\TypeParser - @PHPStan\PhpDocParser\Parser\ConstExprParser tags: - phpstan.rules.rule