Function declaration not handled
Problem
For shell languages, it's possible to declare a new function by several ways. However, some analyzers require the shell function to be declared with the keyword function before the function's name while it's optional.
How to fix
Adding a new transition FUNCT to handle this declaration independantly to the keyword one on function declaration to retrieve function's name.
Also, make FUNCT identifier using FNAME identifier as function's name instead of VAR one.
Fix status
- COM.DATA.LoopCondition (FUNCT declarations handling)
- COM.DESIGN.ActiveWait (FUNCT declarations handling)
- COM.FLOW.Abort (FUNCT declarations handling)
- COM.FLOW.CaseSwitch (FUNCT declarations handling)
- All rules : Verify FUNCT identifier to comply with FNAME.