Home

Unused event parameters should be removed

Rule description

  • Unused event parameters should be removed

 

Non-compliant Code Example

event type integer sales_order_generated(integer order_id);// generate sales order 
// record sales order into databse 
return  0 //Non compliant code (id parameter never used)
end event

Compliant Code Example

event type integer sales_order_generated(integer order_id);// generate sales order
// record sales order into databse
return  order_id //Compliant code 
end event
Visual Expert 2020
 VEPBRULE88