-
Notifications
You must be signed in to change notification settings - Fork 634
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
refactor(path): always name the parameters (add param definition check in doc linter) #6158
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6158 +/- ##
=======================================
Coverage 96.52% 96.52%
=======================================
Files 536 536
Lines 40765 40769 +4
Branches 6118 6118
=======================================
+ Hits 39347 39351 +4
Misses 1374 1374
Partials 44 44 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice! Thanks
@@ -26,8 +26,9 @@ export type { GlobOptions }; | |||
*/ | |||
export function joinGlobs( | |||
globs: string[], | |||
{ extended = true, globstar = false }: GlobOptions = {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to find unused parameter 👍
Closes #5439
This implementation doesn't go well with unnamed parameters (see the other changes in
path/*
). IMO, this is ok. As named parameters and Jsdoc param names go hand in hand, especially considering these are public APIs. Also, immediately on implementation, this helped me uncover some unused fields in the same functions. I'm curious on your opinions on this.