Skip to content

[Bug]: PC0030 false positive on setup tables using Get() #283

@DominicSaladin

Description

@DominicSaladin

Analyzer

PlatformCop

Issue type

False positive (diagnostic fires when it shouldn't)

Rule ID

PC0030

Description

I like the new rule and it helps improve the performance. But as I can see it shows on setup tables too, which afaik shouldn't use SetLoadFields as there is no benefit of doing it.
Is there a way to exclude those without having to use pragma everywhere?

AL code to reproduce

var
      MarketingSetup: Record "Marketing Setup";
begin
      MarketingSetup.Get();

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions