You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is incorrectly triggering UNUSED_METHOD_ARGUMENT and UNUSED_LOCAL_VARIABLE even though they are being used in cfhttpparam script tags. I have verified that this works fine for the standard tag equivalent.
/**
* Some function hint
* @call The value of call
*/
public void function foo(
required string call
)
{
var bar = "";
cfhttp(url="#variables.host#", port="22", method="GET", timeout="30", result="local.httpResponse") {
cfhttpparam(type="url", name="call", value="#arguments.call#");
cfhttpparam(type="url", name="bar", value="#local.bar#");
}
}
Argument call is not used in function. Consider removing it. (UNUSED_METHOD_ARGUMENT)
Local variable bar is not used in function foo. Consider removing it. (UNUSED_LOCAL_VARIABLE)
KamasamaK
changed the title
UNUSED_METHOD_ARGUMENT false positive when used in script tag attribute value
Unused false positives when used in script tag attribute value
Oct 5, 2018
This code is incorrectly triggering UNUSED_METHOD_ARGUMENT and UNUSED_LOCAL_VARIABLE even though they are being used in
cfhttpparam
script tags. I have verified that this works fine for the standard tag equivalent.Related: #574
The text was updated successfully, but these errors were encountered: