-
Notifications
You must be signed in to change notification settings - Fork 31
LC0054
Arthur van de Vondervoort edited this page Oct 12, 2024
·
5 revisions
The goal of this rule is to bring a widely adopted naming convention by other languages for interface objects to the AL Language.
interface ISubscriber
{
procedure Notify()
}
interface "ABC ISubscriber"
Setting the mandatoryAffixes
or mandatoryPrefix
in the AppSourceCop.json file will enable this rule to handle prefixes.
The AppSourceCop itself doesn't need to be enabled. We're only using the config file to retrieve the affixes, avoiding duplicate configuration in case of AppSource development.
procedure Foo(Subscriber: interface ISubscriber)
void Foo(ISubscriber subscriber)
There are differences between AL and C#. When a parameter or variable is declared we include both type and name. That is not the case in C#. So you could argue that the benefits of the I prefix gets lost in AL.