Skip to content
New issue

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

UNUSED_METHOD_ARGUMENT ignores scoped arguments #152

Closed
jevans-gp opened this issue Apr 8, 2016 · 1 comment
Closed

UNUSED_METHOD_ARGUMENT ignores scoped arguments #152

jevans-gp opened this issue Apr 8, 2016 · 1 comment

Comments

@jevans-gp
Copy link

I'm getting an issue where scoped arguments are being highlighted as unused.

consider this code:

<cffunction name="helloWorld" access="public" returntype="string">
  <cfargument name="name" type="string" required="false" default="">
  <cfscript>
    return (len(arguments.name)) ? "Hello #arguments.name#" : "Hello World";
  </cfscript>
</cffunction>

(terribleness of code, my own)

arguments.name will be highlighted as being unused, however if you switch it to len(name) it won't highlight as the argument being unused.

ryaneberly added a commit that referenced this issue Apr 8, 2016
ryaneberly added a commit that referenced this issue Apr 8, 2016
@ryaneberly
Copy link
Contributor

@justinmclean fixed this in the dev branch, we need to merge and release it.

Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants