* Allow null for buyer, and force '' for in printObjectLine(s) * Allow null for Contact in show_actions_done * Qual: Enable phan on modulebuilder # Qual: Enable phan on modulebuilder Most files of the modulebuilder template can be checked as regular files. It will help improve the template * Update baseline (enable modulebuilder notices) * Add properties that are expected to exist on modules_boxes * Qual: Ignore false positive (phan) * Set phpdoc type to include null on formAddObjectLine * Qual: Fixes for modulebuilder (phan, phpstan, bugs, format) * Fix phpcs for intracom * Make ModeleBoxes:showBox() signature match child class's * Fix *box::showBox() phpdoc types * Update index.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr> |
||
|---|---|---|
| .. | ||
| plugins | ||
| stubs | ||
| .gitignore | ||
| baseline_extended.txt | ||
| baseline.txt | ||
| config_extended.php | ||
| config_fixer.php | ||
| config.php | ||
| PHAN.BAT | ||
| README.md | ||
| run-phan.sh | ||
| runPhanDocker.sh | ||
Static Code Checks using phan
Installation, running
run-phan.sh can install and run phan.
See instructions in run-phan.sh for installing (or just run it).
The configuration file in PROJECT_DIR/.phan/config.php also allows you to run
phan independently from the script.
Run options:
No option : Runs the minimum checks
Option 'full' : Runs all an extensive set of checks
Option '1' : Writes the baseline
Examples:
run-phan.shruns the default checksrun-phan.sh 1updates the baseline for the default checksrun-phan.sh fullruns the extended checksrun-phan.sh full 1updates the baseline for the extended checks
Baseline
The baseline.txt file in this directory defines the issues that are currently
excluded from the final report. In principle you should not add any more
exceptions to that file, but rather fix the issues or add phan annotations
that provide more information or to exclude specific cases.
Configuration
config.php : Default configuration file
config_extended.php : Configuration that enables more checks.
baseline.txt : Ignored issues (with config.php)
baseline_extended.txt : Ignored issues (with config_extended.php), not
currently in git