Class QueryOnlyRequiredFieldsCheck

java.lang.Object
All Implemented Interfaces:
JavaCheck, JavaFileScanner

public class QueryOnlyRequiredFieldsCheck extends IssuableSubscriptionVisitor
Rule S6905 flags issues a query that selects all fields is executed. The intent of this rule is to avoid wasting resources by fetching unnecessary fields.

The implemented logic checks if a query containing the "SELECT *" pattern is provided to a method that executes a query.