-
Pokiros authored
- WLSUBEDGEGEO - file for generating eval file for BOWSE - Adding BOW-SE to comparison - gmatch4py - add Jaccard - Change GUI - Adpatable scale - STR - Debug inclusion - Inclusion chain: add usage of geonames inclusion chain - Transformation : debug
afa703d7
README.md 1.17 KiB
irstea/php-cs-fixer-config
Configuration pour PHP-CS-Fixer.
Installation
composer require --dev irstea/php-cs-fixer-config
Configuration
La configuration se fait dans un fichier .php_cs.dist comme avec PHP-CS-Fixer, mais en utilisant la classe Irstea\CS\Config.
Exemple :
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('var')
->files()
->name('*.php')
->in('.');
return Irstea\CS\Config::create()
->setIndent(' ')
->setLineEnding("\n")
->setFinder($finder);
Pour plus de détails, cf. https://cs.symfony.com/#usage
Un modèle d'en-tête (cf. règle header_comment) peut être défini dans un fichier .docheader. Les tags %package% et %yearRange% sont remplacés automatiquement à partir des informations du dépôt git et de composer.json.
Exemple :
This file is part of "%package%".
(c) %yearRange% Irstea <dsi.poleis@irstea.fr>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
Usage
vendor/bin/php-cs-fixer fix