assoconnect/php-quality-config

Maintainers

Package info

github.com/assoconnect/php-quality-config

Homepage

pkg:composer/assoconnect/php-quality-config

Statistics

Installs: 14 774

Dependents: 13

Suggesters: 0

Stars: 0

Open Issues: 3


README

Build Status Quality Gate Status

Installation

composer require --dev assoconnect/php-quality-config

In rector, you can use the ruleset:

return RectorConfig::configure()
    ->withSets([
        __DIR__ . '/vendor/assoconnect/php-quality-config/src/Rector/rules.php',
    ])

PHPStan

Including in this package

  • EnforceHttpsLinksRule to ban insecure links containing http: in string scalars and PHPDoc blocks
  • ForbidIdenticalClassComparisonRule to ban strict comparison of objects
  • DateTimeMustNotBeUsedRule to ban the usage of DateTime and enforce the use of DateTimeImmutable for safer and more predictable date handling

From other packages

  • phpstan/phpstan-phpunit
  • phpstan/phpstan-strict-rules
  • phpstan/phpstan-webmozart-assert
  • roave/no-floaters
  • shipmonk/phpstan-rules
  • thecodingmachine/phpstan-strict-rules

PHPCS / Code Style

Including in this package

  • PSR-12 coding standard

From other packages

  • SlevomatCodingStandard.Namespaces.UnusedUses