Files
iTop/tests/php-code-style/.php-cs-fixer.dist.php
Molkobain a5296e11e1 Merge remote-tracking branch 'origin/support/3.2' into develop
# Conflicts:
#	core/attributedef.class.inc.php
2026-02-17 20:54:47 +01:00

25 lines
786 B
PHP

<?php
$APPROOT = dirname(__DIR__, 2);
echo $APPROOT;
$finder = PhpCsFixer\Finder::create()
->in($APPROOT)
->exclude(['oql', 'data', 'extensions'])
->notPath(['/env-*/', '/cache-*/', 'lib', 'vendor', 'node_modules', 'config-itop', 'php-static-analysis', 'module.__MODULE__.php'])
;
$config = new PhpCsFixer\Config();
return $config->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'no_extra_blank_lines' => true, // default value ['tokens' => ['extra']]
'array_syntax' => true, // default value ['syntax' => 'short']
'concat_space' => true, // default value ['spacing' => 'none']
'trailing_comma_in_multiline' => true, // default value ['after_heredoc' => false, 'elements' => ['arrays']]
])
->setIndent("\t")
->setLineEnding("\n")
->setFinder($finder)
;