2024-02-26 23:10:16 +01:00
|
|
|
<?php
|
2024-03-11 22:20:29 +01:00
|
|
|
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
|
|
|
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
|
|
|
|
*/
|
Qual: Enable detection of deprecated modulename & GETPOST(...,'int') (#28457)
* Qual: Enable detection of deprecated modulename & GETPOST(...,'int')
# Qual: Enable detection of deprecated modulename & GETPOST(...,'int')
Enable phan rules to verify deprecated modulename usage and GETPOST(...,'int')
usage in the code.
* Qual: Try type hint on to help avoid notification
* Qual: Accept 3 parameters for GETPOST to GETPOSTINT conversion
* Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE)
# Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE)
Following the update to the fixer to also convert GETPOST... with 3 parameters.
The files are now converted.
2024-02-28 23:25:16 +01:00
|
|
|
|
2024-03-26 00:57:32 +01:00
|
|
|
|
|
|
|
|
// Load default configuration (with many exclusions)
|
|
|
|
|
//
|
|
|
|
|
$config = include __DIR__.DIRECTORY_SEPARATOR."config.php";
|
|
|
|
|
|
2024-03-08 21:34:18 +01:00
|
|
|
|
2024-03-08 12:18:22 +01:00
|
|
|
//require_once __DIR__.'/plugins/DeprecatedModuleNameFixer.php';
|
|
|
|
|
//require_once __DIR__.'/plugins/PriceFormFixer.php';
|
2024-03-08 21:34:18 +01:00
|
|
|
//require_once __DIR__.'/plugins/UrlEncodeStringifyFixer.php';
|
Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0) (#28718)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* Qual: Update selectDate '' arguments h, m and empty to match PHPdoc (set to 0)
* New: Fixer for selectDate '' arguments h, m and empty
* Qual: Update codespell exceptions
2024-03-09 01:04:15 +01:00
|
|
|
require_once __DIR__.'/plugins/SelectDateFixer.php';
|
Qual: Enable detection of deprecated modulename & GETPOST(...,'int') (#28457)
* Qual: Enable detection of deprecated modulename & GETPOST(...,'int')
# Qual: Enable detection of deprecated modulename & GETPOST(...,'int')
Enable phan rules to verify deprecated modulename usage and GETPOST(...,'int')
usage in the code.
* Qual: Try type hint on to help avoid notification
* Qual: Accept 3 parameters for GETPOST to GETPOSTINT conversion
* Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE)
# Qual: Convert GETPOST(...,'int',VALUE) to GETPOSTINT(...,VALUE)
Following the update to the fixer to also convert GETPOST... with 3 parameters.
The files are now converted.
2024-02-28 23:25:16 +01:00
|
|
|
|
2024-03-26 00:57:32 +01:00
|
|
|
//$deprecatedModuleNameRegex = '/^(?!(?:'.implode('|', array_keys($DEPRECATED_MODULE_MAPPING)).')$).*/';
|
2024-02-27 14:08:07 +01:00
|
|
|
|
|
|
|
|
require_once __DIR__.'/plugins/DeprecatedModuleNameFixer.php';
|
|
|
|
|
|
2024-03-26 00:57:32 +01:00
|
|
|
$config['exclude_file_regex'] = '@^(' // @phpstan-ignore-line
|
2024-02-26 23:10:16 +01:00
|
|
|
.'dummy' // @phpstan-ignore-line
|
|
|
|
|
.'|htdocs/.*/canvas/.*/tpl/.*.tpl.php' // @phpstan-ignore-line
|
|
|
|
|
.'|htdocs/modulebuilder/template/.*' // @phpstan-ignore-line
|
|
|
|
|
// Included as stub (old version + incompatible typing hints)
|
|
|
|
|
.'|htdocs/includes/restler/.*' // @phpstan-ignore-line
|
|
|
|
|
// Included as stub (did not seem properly analysed by phan without it)
|
|
|
|
|
.'|htdocs/includes/stripe/.*' // @phpstan-ignore-line
|
2024-03-11 12:55:44 +01:00
|
|
|
.'|htdocs/conf/conf.php' // @phpstan-ignore-line
|
2024-02-27 14:08:07 +01:00
|
|
|
//.'|htdocs/[^c][^o][^r][^e][^/].*' // For testing @phpstan-ignore-line
|
|
|
|
|
//.'|htdocs/[^h].*' // For testing on restricted set @phpstan-ignore-line
|
2024-03-26 00:57:32 +01:00
|
|
|
.')@'; // @phpstan-ignore-line
|
2024-02-26 23:10:16 +01:00
|
|
|
|
2024-03-26 00:57:32 +01:00
|
|
|
// $config['plugins'][] = __DIR__.'/plugins/ParamMatchRegexPlugin.php';
|
|
|
|
|
$config['plugins'][] = 'DeprecateAliasPlugin';
|
|
|
|
|
$config['plugins'][] = 'DeprecateAliasPlugin';
|
|
|
|
|
// $config['plugins'][] = __DIR__.'/plugins/GetPostFixerPlugin.php';
|
|
|
|
|
// $config['plugins'][] = 'PHPDocToRealTypesPlugin';
|
2024-02-26 23:10:16 +01:00
|
|
|
|
2024-03-26 00:57:32 +01:00
|
|
|
return $config;
|