Download the PHP package aeliot/php-cs-fixer-baseline without Composer
On this page you can find all versions of the php package aeliot/php-cs-fixer-baseline. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aeliot/php-cs-fixer-baseline
More information about aeliot/php-cs-fixer-baseline
Files in aeliot/php-cs-fixer-baseline
Package php-cs-fixer-baseline
Short Description Provide base line for CS Fixer
License MIT
Informations about the package php-cs-fixer-baseline
Baseline for PHP CS Fixer
It's simple baseline for PHP CS Fixer.
Pros:
- It helps to start using of PHP CS Fixer without preparing of all project. Case you don't need to fix them all at the beginning. Only new & changed on each iteration.
- It may speed up pipelines on CI for big projects.
Base project has requires for it but not implemented yet: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6451
So, it's some work around till baseline will be implemented in the PHP CS Fixer.
Installation
-
Require package by composer:
- Extract
Finder
from the config of PHP CS Fixer to the separate file. It expects.php-cs-fixer-finder.php
at the root of the project. -
Add filtering of files detected by Finder
-
Generate baseline. Just call script without options when all config files uses default names.
See options of it below.
You can see how it is configured in this project.
Options of baseline generator
Short name | Long name | Description | Default value |
---|---|---|---|
b | baseline | Name of baseline file | .php-cs-fixer-baseline.json |
c | config | Name of config file | .php-cs-fixer.dist.php |
f | finder | Name of file with definition of Finder | .php-cs-fixer-finder.php |
Path to files can be absolute or related or omitted at all. It the last case it is expected that files in the root directory of project.