-
Notifications
You must be signed in to change notification settings - Fork 9
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
Parameter Count seems failed in destructuring object parameters #365
Comments
Failing test added for reference |
@David-Pena it is like that by design, isn't it? From the code maintainability viewpoint they have 4 and 5 parameters. I understand the issue, but I want to be sure how we think about this and clearly state that in the docs. |
I don't think so, right now I don't remember completely but I think its just misssing the correct logic to identify destructured params
I think destructured props shouldnt be limited. In this case its only one param so it shouldnt be reported, what do you think? @rrd108 |
When the param is an object - I think still there is a reasonable limit of non optional properties but for now I am ok handling it as one |
Lets create a separate issue for that change to the rule |
@David-Pena Sorry for the late reply, just got back from vacation. I've been a bit busy lately, try to contribute in the future. |
This is solved in bbded51 |
Describe the bug
Parameter Count seems failed in destructuring object parameters
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correctly count the destructured object parameters.
Screenshots
Used version number of vue-mess-detector:
0.57.0
Used version number of node & yarn:
[email protected]
,[email protected]
The text was updated successfully, but these errors were encountered: