feat : init Central project — Symfony 8 + Nuxt 4 + Docker starter
Same architecture as Lesstime: API Platform 4, JWT auth, @malio/layer-ui, PostgreSQL 16, Docker Compose (ports 8083/3003/5436), dark mode theme. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
56
.php-cs-fixer.dist.php
Normal file
56
.php-cs-fixer.dist.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use PhpCsFixer\Config;
|
||||
use PhpCsFixer\Finder;
|
||||
|
||||
$finder = Finder::create()
|
||||
->in('src')
|
||||
->notName('Kernel.php')
|
||||
;
|
||||
|
||||
$rules = [
|
||||
'@Symfony' => true,
|
||||
'@PSR12' => true,
|
||||
'@PHP84Migration' => true,
|
||||
'@PER-CS' => true,
|
||||
'@PhpCsFixer' => true,
|
||||
'strict_param' => true,
|
||||
'strict_comparison' => true,
|
||||
'no_useless_else' => true,
|
||||
'no_useless_return' => true,
|
||||
'binary_operator_spaces' => [
|
||||
'operators' => [
|
||||
'=' => 'align_single_space_minimal',
|
||||
'||' => 'align_single_space_minimal',
|
||||
'=>' => 'align_single_space_minimal',
|
||||
],
|
||||
],
|
||||
'global_namespace_import' => [
|
||||
'import_classes' => true,
|
||||
'import_constants' => true,
|
||||
'import_functions' => true,
|
||||
],
|
||||
'modernize_strpos' => true,
|
||||
'no_superfluous_phpdoc_tags' => true,
|
||||
'echo_tag_syntax' => true,
|
||||
'semicolon_after_instruction' => true,
|
||||
'combine_consecutive_unsets' => true,
|
||||
'ternary_to_null_coalescing' => true,
|
||||
'declare_strict_types' => true,
|
||||
'operator_linebreak' => [
|
||||
'position' => 'beginning',
|
||||
],
|
||||
'no_unused_imports' => true,
|
||||
'single_line_throw' => false,
|
||||
'php_unit_test_class_requires_covers' => false,
|
||||
];
|
||||
|
||||
$config = new Config();
|
||||
|
||||
return $config
|
||||
->setRiskyAllowed(true)
|
||||
->setRules($rules)
|
||||
->setFinder($finder)
|
||||
;
|
||||
Reference in New Issue
Block a user