AL icon indicating copy to clipboard operation
AL copied to clipboard

CodeAnalyzer - rule "AA0072" ignores triggers and event subscriber

Open sschuh opened this issue 3 years ago • 2 comments

hi,

AL Language v10.0.673593

the rule AA0072 does not regonize wrong named variables in the following objects and triggers:

for codeunits: EventSubscriber with local variables

for pages: "OnAction" , "OnDrillDown" , "OnLookup", " OnValidate", "OnAssistEdit" with local variables

for reports: "OnAfterGetRecord", "OnPreDataItem" with local variables

for tables: "OnValidate", "OnLookup" with local variables

for tableext: "OnValidate", "OnLookup" with local variables

for pageext: "OnAction" , "OnDrillDown" , "OnLookup", " OnValidate", "OnAssistEdit" with local variables

sschuh avatar Sep 27 '22 10:09 sschuh

Yup, MS correctly stopped warning us about argument names, since we can't control those, but I suspect the fix is applied too broadly and also applies to local variables (maybe arguments and locals are considered the same) - but it must not be, please :)

dzzzb avatar Sep 29 '22 10:09 dzzzb

Currently stumbled across the same issue in v12.5.914975 as I refactor my code. I found this ticket here on GitHub and wanted to ask what the current state on this is (as the ticket got last updated on 6th oct. 2022)? :/

someC0d3r avatar Jan 30 '24 14:01 someC0d3r