CFLint icon indicating copy to clipboard operation
CFLint copied to clipboard

Element parsing error, for cfargument, "#["text"]#"

Open Vintic opened this issue 4 years ago • 0 comments

Second cfargument wont be passed to element(final Element element, final Context context, final BugList bugs) function, because of default="#["xx"]#"

<cfcomponent displayname="t" hint="z">

    <cffunction name = "test" access = "Public">
             <cfargument name = "1" type = "array" required = "false" default=#["zz.id"]# />
             <cfargument name = "2" type = "array" required = "false" default="#["xx"]#" />
             <cfargument name = "3" type = "struct" required = "false" default="#{}#" />
             <cfargument name = "4" type="string" required="false" default="" />

        <cfreturn 1 />
     </cffunction>
</cfcomponent>

Can be tested with rule ARG_HINT_MISSING

Vintic avatar May 14 '20 06:05 Vintic