Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LC0068 - False Positive for tableelement of Integer #744

Open
pri-kise opened this issue Aug 21, 2024 · 1 comment
Open

LC0068 - False Positive for tableelement of Integer #744

pri-kise opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pri-kise
Copy link

xmlport 50000 "PTE Import Data"
{
    Caption = 'Import Data';
    Direction = Import;
    FieldDelimiter = '"';
    FieldSeparator = ';';
    Format = VariableText;
    RecordSeparator = '<NewLine>';
    TableSeparator = '<NewLine><NewLine>';
    TextEncoding = UTF8;
    UseRequestPage = false;
    schema
    {
        textelement(root)
        {
            MinOccurs = Zero;
            tableelement(Integer; Integer) //False Positive
            {
                AutoReplace = false;
                AutoSave = false;
                AutoUpdate = false;
                XmlName = 'Vendors';
                textelement(ACCOUNTNUM)
                {
                    MaxOccurs = Once;
                    MinOccurs = Zero;
                    XmlName = 'ACCOUNTNUM';
                }
            //More Fields + Code
            }
        }

    }
}

We have some XmlPorts that have wrong warning on the tableelement line.
The warning should't trigger here, since AutoReplace, AutoSave and AutoUpdate are false.

@StefanMaron StefanMaron added the bug Something isn't working label Aug 22, 2024
@StefanMaron StefanMaron self-assigned this Aug 22, 2024
@StefanMaron
Copy link
Owner

Both should be fixed now in the latest pre-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants