Warn about insufficient/invalid arguments in a call to the built-in GET procedure
Would like to see that the AL compiler or one of the code analyzers gives a warning when the Get procedure is called with insufficient arguments, too many arguments, or arguments of invalid types that do not match the formal parameters expected given the PK of the record in question. This is an e...
Code analyzer warning on passing (text-)array with (entries of) insufficient length as an argument to a procedure
Would like to see a code analyzer rule that warns developers when in code a text-array is passed as an argument, but the array length or max. length of the text-entries do not match the formal parameter. (1) Example 1: Given the following variable declarations: var FormatAddr: Codeunit "Form...
Service Item Worksheet as Standard Report Usage/Selection
Add the "Service Item Worksheet" document as a standard report usage/report selection in the base application. The Service Item Worksheet is a document that is very often customized, not simply in layout(s), but also in report object(s). Therefore, the standard report is often replaced with a cus...
Implement "Quick Fix" in VSCode for completing Handler functions' signatures
When you add one of the Handler attributes to a procedure, your procedure should match the expected signature for that Handler-type. For example: [MessageHandler] procedure MyMessageHandler() begin end; Will raise the following error message: ``` The signature of procedure 'MyMe...
Static Code Analysis Rule that checks that the DataPerCompany property is set explicitly
It would be helpful to have a code analysis rule that enforces you to set the DataPerCompany property on a table object explicitly. Considering this property has a huge impact, it would be good to have the developer be reminded of the choice of making the table a per-company or 'global'/company-w...