fix: add taint source on plugin-added taints #13599
Annotations
10 errors and 1 warning
RiskyTruthyFalsyComparison:
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php#L1092
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php:1092:25: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
ComplexMethod:
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php#L107
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php:107:28: ComplexMethod: This method’s complexity is greater than the project limit (method graph size = 216, average path length = 159) (see https://psalm.dev/260)
|
PossiblyNullArgument:
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php#L342
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php:342:90: PossiblyNullArgument: Argument 2 of Psalm\CodeLocation::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
PossiblyNullArgument:
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php#L1826
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php:1826:55: PossiblyNullArgument: Argument 1 of Psalm\Plugin\EventHandler\Event\AddRemoveTaintsEvent::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
|
UnusedDocblockParam:
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php#L748
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php:748:44: UnusedDocblockParam: Docblock parameter $args in docblock for Psalm\Internal\Analyzer\Statements\Expression\Call\FunctionCallReturnTypeFetcher::taintUsingStorage does not have a counterpart in signature parameter list (see https://psalm.dev/319)
|
UnusedDocblockParam:
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php#L749
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php:749:30: UnusedDocblockParam: Docblock parameter $removed_taints in docblock for Psalm\Internal\Analyzer\Statements\Expression\Call\FunctionCallReturnTypeFetcher::taintUsingStorage does not have a counterpart in signature parameter list (see https://psalm.dev/319)
|
UnusedDocblockParam:
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php#L750
src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php:750:30: UnusedDocblockParam: Docblock parameter $added_taints in docblock for Psalm\Internal\Analyzer\Statements\Expression\Call\FunctionCallReturnTypeFetcher::taintUsingStorage does not have a counterpart in signature parameter list (see https://psalm.dev/319)
|
UnusedClass:
tests/Config/Plugin/EventHandler/AddTaints/TaintBadDataPlugin.php#L14
tests/Config/Plugin/EventHandler/AddTaints/TaintBadDataPlugin.php:14:7: UnusedClass: Class Psalm\Example\Plugin\TaintBadDataPlugin is never used (see https://psalm.dev/075)
|
UnusedClass:
tests/Config/Plugin/EventHandler/RemoveTaints/RemoveAllTaintsPlugin.php#L9
tests/Config/Plugin/EventHandler/RemoveTaints/RemoveAllTaintsPlugin.php:9:7: UnusedClass: Class Psalm\Tests\Config\Plugin\EventHandler\RemoveTaints\RemoveAllTaintsPlugin is never used (see https://psalm.dev/075)
|
build
Process completed with exit code 2.
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|