CFLint icon indicating copy to clipboard operation
CFLint copied to clipboard

Flag method calls (such as createcomponent) in the default field of cfparam and arguments as a performance problem.

Open ryaneberly opened this issue 5 years ago • 0 comments

Per https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfparam.html Default expressions are alway evaluated.

So calls to createobject() inside the default expression are performance drag and should be flagged:

Example: <cfparam name="address" default=#createobject('component','objects.address').init()#/>

ryaneberly avatar Jul 01 '19 19:07 ryaneberly