This is an error that is hard to spot, so I think detection and a warning on this error would be really helpful.
Comments
I would really prefer codecop rules like this instead of rules like AA0072....
Category: Development
I agree with this proposal but... how would you handle setup table?
For instance GLSetup.Get() should be replaced by GLSetup.Get('') everywhere to prevent getting this warning?
Category: Development
It would improve the development significant
Category: Development
Reported on Github as well
https://github.com/Microsoft/AL/issues/4622
Category: Development
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future.
Best regards,
Business Central Team