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

require-param: Why does not report for all params? #347

Closed
yeonjuan opened this issue Jul 20, 2019 · 2 comments
Closed

require-param: Why does not report for all params? #347

yeonjuan opened this issue Jul 20, 2019 · 2 comments

Comments

@yeonjuan
Copy link
Contributor

yeonjuan commented Jul 20, 2019

I have a question. In using require-param rule.

/**
*
*/
function quux (foo, bar) {

}

Why this code only report one error message ?

Missing JSDoc @param "foo" declaration.

This(below) is what i expected

'Missing JSDoc @param "foo" declaration.'
'Missing JSDoc @param "bar" declaration.'

So for fixing it,
I Think code functionParameterNames.some in rules/requireParam.js should be functionParameterNames.forEach
But,, Is there any reason not to be?

@yeonjuan
Copy link
Contributor Author

Additionally. I think this change needed for fixer implementation(#336)

@gajus
Copy link
Owner

gajus commented Jul 20, 2019

🎉 This issue has been resolved in version 15.5.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants