Skip to content

LC0003, LC0005 false positives raised for dictionaries of interfaces #1008

Open
@MODUSCarstenScholling

Description

@MODUSCarstenScholling

Description

LC0003 and LC0005 false positives are raised for new syntax Create lists and dictionaries of interfaces in AL.

Versions

  • BusinessCentralLinterCop.dll: 0.35.1.0
  • ms-dynamics-smb.al: 16.0.1384372

Example

    internal procedure InterfacesDictionaryAndList()
    var
        dictAIServiceName: Dictionary of [Integer, Interface "AI Service Name"];
        listAIServiceName: List of [Interface "AI Service Name"];
    begin
        Clear(dictAIServiceName);
        Clear(listAIServiceName);
        // Causes the following warnings for the phrase "AI Service Name" in dictAIServiceName:
        // LC0003: Do not use an Object ID for properties or variables declaration. Use Dictionary instead.
        // LC0005: Wrong casing detected! Use Dictionary instead.
        // List has no issues afaik.
    end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions