StefanMaron / BusinessCentral.LinterCop

Community driven code linter for AL (MS Dynamics 365 Business Central)
https://stefanmaron.com
MIT License
76 stars 31 forks source link

LC0005: Xmlport instead of XmlPort #729

Open guidorobben opened 3 months ago

guidorobben commented 3 months ago

LC0005 says that it must be XmlPort (Captial P), but when I use intellisence, it uses Xmlport.

image

So which one is the correct one? I used AZ to cleanup my project and these came up.

pri-kise commented 3 months ago

You can use a special setting for the CleanUp to avoid this kind of changes. https://github.com/anzwdev/al-code-outline/issues/419

"alOutline.useBCLinterCopCaseRules": true
StefanMaron commented 3 months ago

If I remember correctly, the Xmlport casing was tricky since the language is not consistent for this keyword, its used with different casing based on the context.

Arthurvdv commented 3 months ago

https://github.com/StefanMaron/BusinessCentral.LinterCop/issues/99

guidorobben commented 3 months ago

Oeps.I searched and couldnt find a double. Guess I was wrong.

Arthurvdv commented 1 month ago

I did some rework on the LC0005 rule, and I believe I've resolved this.