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
Affects PMD Version: 6.33.0+ 7.0.0
GlobalVariable check fails although value is set correctly, when a "async function" is used and the variable is declarated with var/let.
Code Sample demonstrating the issue:
Error is shown (GlobalVariable: Avoid using global variables):
async function getFilter(argDimensionId, argParentValue) { let params = {}; params['dimensionId'] = argDimensionId; if (argParentValue !== undefined) { params['parentCode'] = argParentValue; } .... }
No error is shown:
function getFilter(argDimensionId, argParentValue) { let params = {}; params['dimensionId'] = argDimensionId; if (argParentValue !== undefined) { params['parentCode'] = argParentValue; } ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Affects PMD Version:
6.33.0+
7.0.0
GlobalVariable check fails although value is set correctly, when a "async function" is used and the variable is declarated with var/let.
Code Sample demonstrating the issue:
Error is shown (GlobalVariable: Avoid using global variables):
No error is shown:
The text was updated successfully, but these errors were encountered: