ST-MRD-017 - Incomplete If
Rule ID: ST-MRD-017
Scope: Activity
Description
This rule detects any If activity where both the Then branch and the Else branch are left completely empty. An If activity evaluates a logical condition (e.g., isSuccess = True). However, if both the Then and Else branches are empty, the bot evaluates the condition but does absolutely nothing with the result. This is considered "dead code". It wastes processing time, causes confusion for future developers reading the workflow, and usually indicates that the developer forgot to finish implementing their business logic.

Recommendation
To resolve this issue and improve code quality:
- Delete the If Activity: If the condition check is no longer relevant to your business process, delete the entire
Ifactivity. - Complete the Logic: If the condition is necessary, ensure you drag and drop the appropriate activities into the
Then(if the condition is met) orElse(if the condition is not met) branches. - Use a Comment: If you intentionally left a branch empty for future development, drop a
Commentactivity inside it to explain your reasoning to other developers.