Skip to content

[Improvment]: LC0092 - Target global and local variables separately #342

Description

@pibcht

Analyzer

LinterCop

Issue type

Other

Rule ID

LC0092

Description

I would like LC0092 to distinguish between local variables and global variables when checking naming conventions.

In our coding standard, local variables use lowerCamelCase, while global variables follow the usual PascalCase rule. Currently, LC0092 seems to apply the same name check to both, which makes it impossible to enforce this convention cleanly.

It would be useful to have separate configuration options for local and global variables, so projects using non-Microsoft naming conventions can still rely on LC0092 without disabling the rule entirely.

Thanks 🫶🏻

AL code to reproduce

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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