-
Notifications
You must be signed in to change notification settings - Fork 181
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
Improve S4328 (no-implicit-dependencies): check package.json files in all levels up #3102
Conversation
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
const upperDir = path.dirname(dirname); | ||
if (upperDir === dirname) { | ||
break; | ||
} else { | ||
dirname = upperDir; | ||
} |
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.
Food for thought...
Just saying, and not sure if it would make the code much more readable, but we could get rid of the if-break-else thing by turning the infinite while loop into a do-while loop.
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.
I see the point but not sure it's clearer with do-while
SonarQube Quality Gate |
Do you know when this will be released? |
Hello @gpessa, this improvement is already available on SonarCloud, and it will be part of SonarQube 9.5, whose release is planned for early June. |
Fixes #2682