dolibarr/htdocs/core
MDW 1c3a035ae5
Qual: New Phan plugin for testing that argument matches regex (#28424)
* Qual: New Phan plugin for testing that argument matches regex

# Qual: New Phan plugin for testing that argument matches regex

This Plugin - currently applied to GETPOST - allows verifying that a selected
argument of a function matches a regular expression.

* Qual: Add isModEnabled verification to phan

# Qual: Add isModEnabled verification in phan

Using ParamMatchRegexPlugin, add isModEnabled parameter verification.

* Qual: Verify sanitizeVal check value

# Qual: Verify sanitizeVal check value

Use ParamMatchPlugin to check sanitizeVal check value

* Qual: Extend ParamMatchRegexPlugin with class_method

# Qual: Extend ParamMatchRegexPlugin with class_method

Allow matching class methods for argument verification.

* Update config.php

* Qual: New Phan plugin for testing that argument matches regex

# Qual: New Phan plugin for testing that argument matches regex

This Plugin - currently applied to GETPOST - allows verifying that a selected
argument of a function matches a regular expression.

* Qual: Add isModEnabled verification to phan

# Qual: Add isModEnabled verification in phan

Using ParamMatchRegexPlugin, add isModEnabled parameter verification.

* Qual: Verify sanitizeVal check value

# Qual: Verify sanitizeVal check value

Use ParamMatchPlugin to check sanitizeVal check value

* Qual: Extend ParamMatchRegexPlugin with class_method

# Qual: Extend ParamMatchRegexPlugin with class_method

Allow matching class methods for argument verification.

* Report scalar values (see null, etc)

* Qual: Ignore false Phan Notification

* Qual: Ignore false Phan Notification

* Qual: Fix Phan needs specific message keys for coloring.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-26 23:10:16 +01:00
..
ajax Standardize field name 2024-02-22 13:11:32 +01:00
boxes qual: phpstan - various fixes (#28351) 2024-02-22 13:22:06 +01:00
class Work on customreports 2024-02-26 20:11:55 +01:00
data
db QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
filemanagerdol qual: phpstan for htdocs/core/filemanagerdol/connectors/php/connector.lib.php 2024-01-31 21:25:45 +01:00
js Comment 2024-02-26 19:14:00 +01:00
lib Qual: New Phan plugin for testing that argument matches regex (#28424) 2024-02-26 23:10:16 +01:00
login Qual: Apply automatic phan fixes (deprecations, unneeded imports) (#28154) 2024-02-13 21:46:12 +01:00
menus Order list det change to eprimental (#28438) 2024-02-26 23:01:08 +01:00
modules Fix bad parameter for GETPOST 2024-02-26 15:02:39 +01:00
tpl QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
triggers QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
actions_addupdatedelete.inc.php QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
actions_builddoc.inc.php fix param 2024-01-20 09:22:38 +01:00
actions_changeselectedfields.inc.php
actions_comments.inc.php qual: phpstan for htdocs/core/actions_comments.inc.php 2024-01-24 21:51:48 +01:00
actions_dellink.inc.php Fix with php-cs-fixer 2023-12-04 12:07:53 +01:00
actions_extrafields.inc.php Qual: Spelling htdocs/core (#27491) 2024-01-13 19:48:20 +01:00
actions_fetchobject.inc.php Fix with php-cs-fixer 2023-12-04 12:07:53 +01:00
actions_lineupdown.inc.php Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
actions_linkedfiles.inc.php Fix with php-cs-fixer 2023-12-04 12:07:53 +01:00
actions_massactions.inc.php Fix bad parameter for GETPOST 2024-02-26 15:02:39 +01:00
actions_printing.inc.php
actions_sendmails.inc.php Add log 2024-02-18 02:12:34 +01:00
actions_setmoduleoptions.inc.php fix phpcs warning (#28074) 2024-02-09 11:30:27 +01:00
actions_setnotes.inc.php fix warning (#28102) 2024-02-10 17:25:30 +01:00
antispamimage.php fix param 2024-01-20 09:22:38 +01:00
bookmarks_page.php Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
commonfieldsinexport.inc.php QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
commonfieldsinimport.inc.php QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
customreports.php Work on custom report 2024-02-26 20:39:46 +01:00
datepicker.php fix param 2024-01-20 09:22:38 +01:00
doxygen.php
extrafieldsinexport.inc.php QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
extrafieldsinimport.inc.php QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
get_info.php Remove dead code 2024-01-25 17:36:02 +01:00
get_menudiv.php Debug css v19 2023-12-14 00:29:57 +01:00
multicompany_page.php
photos_resize.php fix param 2024-01-20 09:22:38 +01:00
search_page.php QUAL Use phan to help detect new issues (#27706) 2024-02-21 18:14:29 +01:00
search.php
tools.php
website.inc.php Fix warning 2024-02-25 16:57:45 +01:00