When querying large objects, non-selective queries take a very long-time and may cause different programmatic elements (such as Apex triggers or batch Apex classes) to fail.
Large objects configuration
This rule works with special objects configured on each project.
Project leads can manage special objects and configure any required indexed fields:
Go to Project > Settings
Then select Application objects
Enter the name of the object
Edit the object and check the Large data volumes toggle
Add any indexed fields
Click Preview to know if there are scans are affected by this change
Click Update to confirm
Use this check as part of the review process
As this rule is not part of any Clayton default Skill, it requires a custom Skill to be used within code reviews:
Add the Non-selective SOQL queries on large objects rule to the Skill
Configure the desired severity
Finally, Publish the new Skill to make it available for projects
Note: Make sure to have configured large data objects on your projects (Project > Settings > Application objects) before launching new scans.