StefanMaron / BusinessCentral.LinterCop

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

LC0048 - Exclude blank errors #445

Closed fvet closed 10 months ago

fvet commented 10 months ago

We often want to halt a process (open page, ...) on purpose and halt the transaction (without actually showing a message to the user) by raising an error(''). I don't see the need why those should be converted to ErrorInfo / labels? Maybe exclude 'Error('')' from the rule?

image

Arthurvdv commented 10 months ago

Thanks for reporting, this is indeed a false positive and should be resolved in the updated prelease v0.30.10 version of the LinterCop.