apache / incubator-kie-drools

Drools is a rule engine, DMN engine and complex event processing (CEP) engine for Java.
http://www.drools.org
5.85k stars 2.49k forks source link

Emit a warning when an eval is improperly and unnecessarily used #6016

Closed tkobayas closed 2 months ago

tkobayas commented 2 months ago

Emit a warning when an eval is improperly and unnecessarily used.

e.g.

when
    $a: FirstObject( )
    $b: SecondObject( )
    eval (  finalCheck( $a.someIntValue, $b.anotherInt  ) )

to be

when
    $a: FirstObject( )
    $b: SecondObject( finalCheck( $a.someIntValue, anotherInt  ) )