A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2598 below:

[apex] AvoidSoqlInLoops false positive for SOQL with in For-Loop · Issue #2598 · pmd/pmd · GitHub

Affects PMD Version: 6.24.0

Description:

The rule AvoidSoqlInLoops does report the following violation, when it shouldn't:

public class Foo {
    public void bar() {
        for(NAMESPACE__CustomObject__c customObject : DatabaseUtility.query([Select Id FROM NAMESPACE__CustomObject__c where id IN :setIds])) // <-- violation is reported here
        {
            // …
        }
    }
}

This is a false-positive!

Running PMD through: Command line


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4