1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Allow TaintedInput to suppress all emitted issues

This commit is contained in:
Matt Brown 2020-11-17 16:08:05 -05:00 committed by Daniil Gentili
parent db566c7c4d
commit 5f6c6a1215
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -1521,6 +1521,10 @@ class Config
return $stripped_issue_type;
}
if (strpos($issue_type, 'Tainted') === 0) {
return 'TaintedInput';
}
if (preg_match('/^(False|Null)[A-Z]/', $issue_type) && !strpos($issue_type, 'Reference')) {
return preg_replace('/^(False|Null)/', 'Invalid', $issue_type);
}