Skip to content

The name of Record is not valid. The name of variables and parameters must be suffixed with the type or object name in app.json #6372

@CorpitalFDP

Description

@CorpitalFDP

Describe the bug
Warning AA0022 in line 1 of app.json when a codeunit have the parameter TableNo

To Reproduce
use this settings.json:
{
"al.enableCodeAnalysis": true,
"al.codeAnalyzers": [
"${CodeCop}",
"${PerTenantExtensionCop}",
"${UICop}"
]
}

AL Code to reproduce the issue
create this codeunit:
codeunit 50000 "Test AA0072"
{
TableNo = "Customer";

trigger OnRun()
begin
end;

}

Expected behavior
Not to get the warning

Screenshots
If applicable, add screenshots to help explain your problem.
image

5. Versions:

  • AL Language: v6.1.381323
  • Business Central: 17.2.19367.19525

Metadata

Metadata

Assignees

No one assigned

    Labels

    CodeCopThis is a specific static-code-analysis group (AA)bugProduct bugstatic-code-analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions