grano22/code_quality_pack

Code quality toolset to help better maintain your code

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/grano22/code_quality_pack

dev-master 2025-03-29 08:28 UTC

This package is auto-updated.

Last update: 2025-09-29 09:38:17 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