We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems like the control expression in a switch statement is not being accounted for.
For example, the following code will trigger a false positive UNUSED_METHOD_ARGUMENT error.
<cfscript> public struct function onLoad(boolean test = false) output="false" { switch (arguments.test) { } return {}; } </cfscript>
The text was updated successfully, but these errors were encountered:
It seems like we are also not taking into account the body of the switch statement.
The below will also trigger an UNUSED_METHOD_ARGUMENT.
<cfscript> public struct function onLoad(boolean test = false) output="false" { switch (true) { case true: if (arguments.test) { } } } </cfscript>
Sorry, something went wrong.
include cfcase
e20480c
#234
Good catch. It is fixed.
No branches or pull requests
It seems like the control expression in a switch statement is not being accounted for.
For example, the following code will trigger a false positive UNUSED_METHOD_ARGUMENT error.
The text was updated successfully, but these errors were encountered: