Closed dzzzb closed 2 years ago
Any news? It's almost a year since the last update (in-progress) and it makes it challenging to use these cops...
Also a TestPage object is shown as a warning
What is an example of the code, and what specific warning do you get?
The same as you get @dnpb source code - https://github.com/Ugniusig/ALWarningExample
AL extension:
Name: AL Language
Id: ms-dynamics-smb.al
Description: AL development tools for Dynamics 365 Business Central
Version: v9.0.615906
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al
Thanks for reporting this issue. Sorry we haven’t completed it yet, but we’ve had to prioritize elsewhere. We’re planning to give the CodeCop engine and its rules an overhaul in a future major release. Thanks for your patience.
For this case consider using Pragma Warning Directive.
With this code:
Most object types that I've tried can have the affix omitted from variables thereof, but for some reason
Report
andQuery
objects cannot, and AA0072 complains about them:Presumably this allowance of omitting the defined affix is meant to work for any object type? If so, please fix this so that it will. If not, an explanation/documentation why not is required.
Thanks!
AL extension: