mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Debug php-cs-fixer
This commit is contained in:
@@ -16,11 +16,19 @@ return (new PhpCsFixer\Config())
|
||||
->setRules([
|
||||
// Apply PSR-12 as per https://wiki.dolibarr.org/index.php?title=Langages_et_normes#PHP:~:text=utiliser%20est%20le-,PSR%2D12,-(https%3A//www
|
||||
// '@PSR12' => true, // Disabled for now to limit number of changes
|
||||
|
||||
// Minimum version Dolibarr v18.0.0
|
||||
'@PHP71Migration' => true,
|
||||
// Compatibility with min 7.1 is announced with Dolibarr18.0 but
|
||||
// app is still working with 7.0 so no reason to abandon compatiblity with this target for the moment.
|
||||
// So we use target PHP70 for the moment.
|
||||
'@PHP70Migration' => true,
|
||||
//'@PHP71Migration' => true,
|
||||
|
||||
//'strict_param' => true,
|
||||
//'array_syntax' => ['syntax' => 'short'],
|
||||
//'list_syntax' => false,
|
||||
'array_syntax' => false,
|
||||
'ternary_to_null_coalescing' => false
|
||||
])
|
||||
->setFinder($finder)
|
||||
// TAB Indent violates PSR-12 "must" rule, but used in code
|
||||
|
||||
1
dev/tools/php-cs-fixer/.gitignore
vendored
Normal file
1
dev/tools/php-cs-fixer/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/vendor/
|
||||
@@ -49,7 +49,7 @@ if [ "x$1" = "x" ]; then
|
||||
fi
|
||||
|
||||
(
|
||||
cd "${MYDIR}/../.." || exit
|
||||
cd "${MYDIR}/../../.." || exit
|
||||
CMD=
|
||||
# If no argument, run check by default
|
||||
[[ "$1" == "" ]] && CMD=check
|
||||
@@ -13,6 +13,7 @@ Install rector with composer
|
||||
composer install
|
||||
```
|
||||
|
||||
|
||||
#### Usage
|
||||
|
||||
##### To make changes (Add --dry-run for test mode only)
|
||||
|
||||
Reference in New Issue
Block a user