|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +/** |
| 6 | + * Ergonomic utilities for PHP enums, including names, values, lookups, and option maps. |
| 7 | + * |
| 8 | + * This file is part of fast-forward/enum project. |
| 9 | + * |
| 10 | + * @author Felipe Sayão Lobato Abreu <github@mentordosnerds.com> |
| 11 | + * @license https://opensource.org/licenses/MIT MIT License |
| 12 | + * |
| 13 | + * @see https://github.com/php-fast-forward/enum |
| 14 | + * @see https://github.com/php-fast-forward/enum/issues |
| 15 | + * @see https://php-fast-forward.github.io/enum/ |
| 16 | + * @see https://datatracker.ietf.org/doc/html/rfc2119 |
| 17 | + */ |
| 18 | + |
| 19 | +use FastForward\DevTools\Path\WorkingProjectPathResolver; |
| 20 | +use PhpCsFixer\Config; |
| 21 | +use PhpCsFixer\Finder; |
| 22 | + |
| 23 | +require __DIR__ . '/vendor/autoload.php'; |
| 24 | + |
| 25 | +return (new Config()) |
| 26 | + ->setRiskyAllowed(false) |
| 27 | + ->setFinder(Finder::create()->in(__DIR__)->exclude(WorkingProjectPathResolver::TOOLING_EXCLUDED_DIRECTORIES)) |
| 28 | + ->setRules([ |
| 29 | + 'phpdoc_indent' => true, |
| 30 | + 'phpdoc_order' => ['order' => ['param', 'return', 'throws']], |
| 31 | + 'phpdoc_separation' => true, |
| 32 | + 'phpdoc_trim' => true, |
| 33 | + 'phpdoc_trim_consecutive_blank_line_separation' => true, |
| 34 | + 'phpdoc_scalar' => true, |
| 35 | + 'phpdoc_types' => true, |
| 36 | + 'phpdoc_to_comment' => false, |
| 37 | + 'phpdoc_add_missing_param_annotation' => true, |
| 38 | + ]); |
0 commit comments