0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-07-27 03:52:21 +00:00
salesagility_SuiteCRM/.php_cs.dist
Connor Shea 59318fe4fb Remove SugarXHProf.
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ō
2021-03-26 21:50:32 +00:00

44 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);