Skip to content

Cleanup code and lint warnings#168

Merged
kikoveiga merged 1 commit into
developfrom
kikoveiga/cleanup-dead-code
Jun 1, 2026
Merged

Cleanup code and lint warnings#168
kikoveiga merged 1 commit into
developfrom
kikoveiga/cleanup-dead-code

Conversation

@kikoveiga

@kikoveiga kikoveiga commented May 30, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Bump rokucommunity/bslint version 0.8.38 -> 0.8.39, which fixes a bug regarding parameters not being flagged as unused.
  • Fix several functions in Asserts.bs which weren't using the msg parameter.
  • Change some for each occurrences with .append calls.
  • Cleanup unused/dead code, now npm run lint finds 0 warnings.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@kikoveiga kikoveiga self-assigned this May 30, 2026
@kikoveiga
kikoveiga marked this pull request as ready for review May 30, 2026 15:56
@kikoveiga
kikoveiga requested a review from a team as a code owner May 30, 2026 15:56
@kikoveiga
kikoveiga requested a review from Copilot May 30, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR focuses on eliminating lint warnings across the codebase by updating the BrightScript linter and cleaning up unused/dead code, including updating assertion helpers to properly use their msg parameter.

Changes:

  • Bump @rokucommunity/bslint from 0.8.38 to 0.8.39.
  • Update multiple BaseAssert methods to respect the optional msg parameter when throwing.
  • Remove unused variables/initializations in tests and task components to resolve lint warnings (and sync generated dist/ output).

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/source/tests/Test__DdUrlTransfer.bs Removes unused test variable to satisfy lint.
test/source/tests/Test__datadog.bs Removes unused variables in initialization test setup.
test/source/asserts/Asserts.bs Uses msg parameter for thrown assertion messages when provided.
package.json Updates @rokucommunity/bslint devDependency version.
library/components/rum/RumCrashReporterTask.bs Removes unused roMessagePort initialization.
library/components/core/MultiTrackUploaderTask.bs Removes unused roFileSystem initialization.
dist/components/rum/RumCrashReporterTask.brs Generated output reflecting removal of unused port.
dist/components/core/MultiTrackUploaderTask.brs Generated output reflecting removal of unused filesystem field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
@kikoveiga
kikoveiga force-pushed the kikoveiga/cleanup-dead-code branch from 007da65 to 759b60d Compare May 30, 2026 19:17
@kikoveiga
kikoveiga merged commit ad6f297 into develop Jun 1, 2026
8 checks passed
@kikoveiga
kikoveiga deleted the kikoveiga/cleanup-dead-code branch June 1, 2026 07:06
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.

3 participants