Class AvoidSoqlInLoopsRule

    • Constructor Detail

      • AvoidSoqlInLoopsRule

        public AvoidSoqlInLoopsRule()
        Deprecated.
    • Method Detail

      • checkForViolation

        protected Object checkForViolation​(ApexNode<?> node,
                                           Object data)
        Adds a violation if any parent of node is a looping construct that would cause node to execute multiple times and node is not part of a return statement that short circuits the loop.