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 is triggered with a function argument #550

Closed
jtorz opened this issue Mar 15, 2018 · 1 comment
Closed

UNUSED_METHOD_ARGUMENT is triggered with a function argument #550

jtorz opened this issue Mar 15, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@jtorz
Copy link

jtorz commented Mar 15, 2018

For example:

public string function myFunction(function doSomething){
    return doSomething();
}

UNUSED_METHOD_ARGUMENT: Argument dosomething is not used in function. Consider removing it.

@KamasamaK KamasamaK added the bug label Mar 29, 2018
@KamasamaK
Copy link
Collaborator

I have confirmed that the example given above incorrectly reports the UNUSED_METHOD_ARGUMENT issue.

However, I have found that it does not report that issue when including the scope as below:

public string function myFunction(function doSomething){
    return arguments.doSomething();
}

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

No branches or pull requests

3 participants