mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-01-11 11:58:24 +00:00
59318fe4fb
The XHProf project has been abandoned for 4 years, and the version vendored here is much older than even that. It's undocumented, unmaintained, and it doesn't seem like it even works on PHP 7.x. "The best way to choose what to keep and what to throw away is to take each item in one’s hand and ask: 'Does this spark joy?' If it does, keep it. If not, dispose of it." - Marie Kondō
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
|
|
use SuiteCRM\Utility\Paths;
|
|
|
|
$paths = new Paths();
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->exclude('cache')
|
|
->exclude('service')
|
|
->exclude('build')
|
|
->exclude('vendor')
|
|
->exclude('themes')
|
|
->exclude('upload')
|
|
->exclude('XTemplate')
|
|
->exclude('Zend')
|
|
->exclude('include/timezone')
|
|
->exclude('include/SuiteGraphs')
|
|
->exclude('include/social')
|
|
->exclude('include/Smarty')
|
|
->exclude('include/reCaptcha')
|
|
->exclude('include/phpmailer')
|
|
->exclude('include/Pear')
|
|
->exclude('include/pclzip')
|
|
->exclude('include/nusoap')
|
|
->exclude('include/HTTP_WebDAV_Server')
|
|
->exclude('include/HTMLPurifier')
|
|
->exclude('include/ytree')
|
|
->exclude('include/tcpdf')
|
|
->exclude('include/php-sql-parser.php')
|
|
->exclude('include/parsecsv.lib.php')
|
|
->exclude('modules/AOS_PDF_Templates/PDF_Lib')
|
|
->exclude('modules/AOD_Index/Lib')
|
|
->exclude('modules/Users/authentication/SAML2Authenticate/lib')
|
|
->exclude('modules/AOR_Charts/lib')
|
|
->exclude('install/demoData.en_us.php')
|
|
->exclude('include/SugarObjects/templates')
|
|
->in($paths->getProjectPath());
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@PSR2' => true,
|
|
])
|
|
->setFinder($finder);
|