You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- rrd ~ function size
src\views\Test\test.js
👉 Functions must be shorter than 20 lines. See: https://vue-mess-detector.webmania.cc/rules/rrd/function-size.html
function (sum#1) is too long: 24 lines 🚨
Expected behavior
Arrow function with expression body should be calculated correctly.
I'm working on a refactor of the functionSize rule using babel parser to handle better and avoid this common false positives or edge-cases. I just removed the .todo from the test added in this issue and it works 🫡
Soon you will be able to try it out and that code health will be 100% 🙌
Describe the bug
Arrow function with expression body results the error calculation of function rows.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Arrow function with expression body should be calculated correctly.
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: