Skip to content

@W-18962079 refactor: unused-vars #6396

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

Merged
merged 30 commits into from
Jul 5, 2025
Merged

@W-18962079 refactor: unused-vars #6396

merged 30 commits into from
Jul 5, 2025

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Jul 3, 2025

primary:

  • enable eslint rule to error unused vars
  • there's an allowance for underscore-prefixed args _foo that are intentionally unused. Usually, it's because we have to match an interface for OOP extends reasons, but should keep us from introducing more of them unintentionally.
  • clean up some truly unused things

other

dedupe: core ext uses SfWorkspaceChecker from utils instead of its own local copy
removed the Predicate stuff
removed the unused stuff related to getTelemetryData on sfCommandletExecutor (also verified a4d ext isn't using it)
fix some promise handling (async vs. not)

@W-18962079@

@mshanemc mshanemc requested a review from a team as a code owner July 3, 2025 13:26
@mshanemc mshanemc requested a review from klewis-sfdc July 3, 2025 13:26
@mshanemc mshanemc changed the title refactor: unused-vars @W-18962079 refactor: unused-vars Jul 3, 2025
@daphne-sfdc daphne-sfdc requested review from daphne-sfdc and removed request for klewis-sfdc July 3, 2025 13:59
Copy link
Contributor

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E2E test run: https://github.com/forcedotcom/salesforcedx-vscode/actions/runs/16060105919

Manual testing:

Mac:

  • Deploy and Retrieve ✅
  • Push and Pull ✅

Ubuntu:

  • Create OAS Doc ✅
  • Deploy and Retrieve ✅
  • Push and Pull ✅

Windows:

  • Create OAS Doc ✅
  • Apex LSP ✅
  • Debug Apex Tests ✅
  • Run Apex Tests ✅
  • Deploy and Retrieve ✅
  • Manifest Builder ✅
  • Push and Pull ✅
  • LWC LSP ✅
  • Debug LWC Tests ✅
  • Run LWC Tests ✅

@daphne-sfdc daphne-sfdc merged commit addd49c into develop Jul 5, 2025
8 checks passed
@daphne-sfdc daphne-sfdc deleted the sm/unused-vars branch July 5, 2025 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants