StefanMaron / BusinessCentral.LinterCop

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

LC0016: exception needed for grid controls #548

Closed Pazzakara closed 6 months ago

Pazzakara commented 6 months ago

Although page controls of type grid can tecnically have a caption property, the caption is never displayed on the UI. Therefore the caption property should not be mandatory for grids.

Arthurvdv commented 6 months ago

Can you help me with small .AL example?

I've tested with an example from here which doesn't raises the LC0016 it seems?

Pazzakara commented 6 months ago

hm.. if i copy the code of the link you have posted, I get a lot of LC0016 warnings including line 11 which is grid(MyGrid). If this is useful: I'm using BusinessCentral.LinterCop Version: 0.1.6

Here is another example I have created ExamplePage.txt

Arthurvdv commented 6 months ago

Your example was a perfect help and indeed raised a false positive on Grid control.

This should now be resolved in the (pre)release version of v0.30.14 of the LinterCop.

Arthurvdv commented 6 months ago

The v0.30.14 version of the LinterCop is now released, where I believe this issue is now resolved. If you still encounter issues, feel free to reopen this issue (or create new one).