As @GreenTea rightly pointed out. This rule does not exist in the default workflow analyser rule set.
If you do have to make a custom rule for your organization you will have to invest some time to make them in visual studio and also test them in UiPath. Here is the walkthrough on how to build custom rules : Building Custom Rules
That said, you and your developers can actually avoid this by clearly defining a development standard and each developer owns their share of code and ensures that all invoke workflow activities are given special care with respect to their in / out arguments.
The time it might take to build and test custom analyser rules may be not so worthwhile if your developers are already proactive and now know what to look out for while developing.