mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-07 17:42:53 +01:00
# Qual: Phan/apstats should not be using the standard baseline Fix to get apstats reporting on the technical debt. The 'baseline.txt' is for the ci regression. The code is changed to allow a 'baseline_extended.txt' which should not be generated, only hand-crafted
23 lines
985 B
Plaintext
23 lines
985 B
Plaintext
<?php
|
|
/**
|
|
* /!\ DO NOT generate this baseline - it should only suppress notices
|
|
* that are to be excluded from the technical debt and that can
|
|
* not be excluded using other methods.
|
|
* The 'internal' PhanUndeclaredConstant is such a case.
|
|
*
|
|
* When Phan is invoked with --load-baseline=path/to/baseline.php,
|
|
* The pre-existing issues listed in this file won't be emitted.
|
|
*
|
|
* This file can be updated by invoking Phan with --save-baseline=path/to/baseline.php
|
|
* (can be combined with --load-baseline)
|
|
*/
|
|
return [
|
|
|
|
// Currently, file_suppressions and directory_suppressions are the only supported suppressions
|
|
'file_suppressions' => [
|
|
'internal' => ['PhanUndeclaredConstant'],
|
|
],
|
|
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
|
|
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
|
|
];
|