-
Notifications
You must be signed in to change notification settings - Fork 92
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
Update dev deps and fix code smells for V3 #3130
Conversation
Signed-off-by: Timothy Johnson <[email protected]>
Signed-off-by: Timothy Johnson <[email protected]>
📅 Suggested merge-by date: 10/3/2024 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3130 +/- ##
==========================================
- Coverage 92.60% 92.60% -0.01%
==========================================
Files 113 113
Lines 11658 11657 -1
Branches 2487 2591 +104
==========================================
- Hits 10796 10795 -1
Misses 860 860
Partials 2 2 ☔ 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! thanks @t1m0thyj
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.
Changes LGTM, thanks Timothy for the fixes & updates 😋
const isValFn = typeof value === "function"; | ||
|
||
if (isValFn || (typeof descriptor?.value === "function" && value == null)) { | ||
if (typeof value === "function") { |
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.
Thanks for cleaning this logic up 😁
Signed-off-by: Timothy Johnson <[email protected]>
f560dea
to
081cbdd
Compare
Signed-off-by: Timothy Johnson <[email protected]>
Quality Gate passedIssues Measures |
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.
Had a quick question but nothing that should hold this PR back. Thanks Timothy for the updates & code smell fixes
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.
Question for my own clarification: could we remove some of the logic in this script by defining the file suffix before looking over the entries in the JSON? E.g.:
const fileSuffix = langId ? `.${langId}.json` : ".json";
Then the same file suffix could be appended to the package.nls
, poeditor
and bundle.l10n
files to retrieve the contents for the given language ID.
I didn't notice much of a difference between the two branches when doing the langId
checks, but if we have to keep the logic separate then feel free to disregard this.
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.
can create a follow up story if decided to make the updates.
Proposed changes
Resolves security alerts and code smells found by GitHub now that V3 code is in the main branch.
Release Notes
Milestone: 3.0.0
Changelog: N/A
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment
Further comments