This is an error that is hard to spot, so I think detection and a warning on this error would be really helpful.
I would really prefer codecop rules like this instead of rules like AA0072....
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?
It would improve the development significant
Reported on Github as well
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.
Business Central Team