zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
159 stars 89 forks source link

Fix Coverity code smells in v3 #2896

Closed t1m0thyj closed 2 months ago

t1m0thyj commented 2 months ago

Proposed changes

Fixes 4 code smells detected by Coverity in the v3 branch

Release Notes

Milestone:

Changelog:

Types of changes

What types of changes does your code introduce to Zowe Explorer? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer

Further comments

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.40%. Comparing base (cb6aba7) to head (de7b9dc). Report is 1 commits behind head on next.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #2896 +/- ## ========================================== + Coverage 93.38% 93.40% +0.02% ========================================== Files 121 121 Lines 10835 10834 -1 Branches 2309 2310 +1 ========================================== + Hits 10118 10120 +2 + Misses 714 712 -2 + Partials 3 2 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

zFernand0 commented 2 months ago

I don't think we have an open issue for addressing scan results in general, but I think this is a good practice to continue doing.

@t1m0thyj, Should we open an issue about the settingEnabled bug that was theoretically fixed here? Not sure if we really need it, but it might be good to capture it somewhere 😋

JillieBeanSim commented 2 months ago

merging with the approvals. also for follow up @t1m0thyj, here is the issue I mentioned in scrum that may be related https://github.com/zowe/zowe-explorer-vscode/issues/2063