bytic/phpqaconfig

Meta package for configuration files for PHP QA tools

1.0.8 2022-02-06 10:15 UTC

This package is auto-updated.

Last update: 2022-05-17 13:29:15 UTC


README

PHP Code Sniffer

Configuration file: bytic.phpcs.xml

Usage

  1. Link bytic/qaconfig repo as composer dependency

    $ composer require bytic/qaconfig:^1.0

  2. Extend provided configuration to adapt it to your project.

     <?xml version="1.0" encoding="UTF-8"?>
     <ruleset name="DEMO-PHP project code style checker config">
         <rule ref="./vendor/bytic/qaconfig/bytic.phpcs.xml">
             <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
         </rule>
         <rule ref="PSR1.Classes.ClassDeclaration">
             <exclude-pattern>*/_stubs.php</exclude-pattern>
         </rule>
         <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement.Found">
             <exclude-pattern>*/_stubs.php</exclude-pattern>
         </rule>
     </ruleset>

Inspiration