Skip to content

[Bug]: LC0092 false positive for Action Areas - this is invalid as Areas are pre-defined by Microsoft #537

Description

@AlanDixey

Analyzer

LinterCop

Issue type

False positive (diagnostic fires when it shouldn't)

Rule ID

LC0092

Description

Custom Naming Patterns interfere with application of the diagnostic. If a custom NamingPattern is set against Actions, it is applied to Action Areas as well, which is invalid as areas are pre-defined by Microsoft.

AL code to reproduce

actions
{
area(Processing)
{
action(Test)
{}
}
}

Additional context

alcops.json to reproduce
{
"NamingPatterns": {
"Action": {
"AllowPattern": "act[A-Za-z0-9]",
"AllowDescription": "Should begin with 'act'."
}
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpart of upcoming releaseAvailable in alpha/beta and waiting to be included in the next stable release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions