Skip to content

fix(transformers): correct stale JSDoc comments and remove unused export#1247

Open
VeerShah41 wants to merge 1 commit intoshikijs:mainfrom
VeerShah41:fix/transformers-jsdoc-and-dead-code
Open

fix(transformers): correct stale JSDoc comments and remove unused export#1247
VeerShah41 wants to merge 1 commit intoshikijs:mainfrom
VeerShah41:fix/transformers-jsdoc-and-dead-code

Conversation

@VeerShah41
Copy link
Copy Markdown

  • notation-map: classActivePre/classActiveCode JSDoc said 'has diff' but this is a generic base transformer, not diff-specific. Changed to 'has a notation match'.

  • notation-error-level: same copy-paste issue — classActivePre/ classActiveCode JSDoc still said 'has diff' even though this transformer is for error/warning annotations. Fixed accordingly.

  • style-to-class: function-level JSDoc was 'Remove line breaks between lines' (copied verbatim from remove-line-breaks.ts). Replaced with an accurate description of what the transformer actually does.

  • parse-comments: removed exported v3ClearEndCommentPrefix which was defined but never called anywhere in the codebase (dead code). The sibling v1ClearEndCommentPrefix is correctly wired up and kept.

  • <- Keep this line and put an x between the brackts.

Description

Linked Issues

fixes #

Additional context

- notation-map: classActivePre/classActiveCode JSDoc said 'has diff'
  but this is a generic base transformer, not diff-specific.
  Changed to 'has a notation match'.

- notation-error-level: same copy-paste issue — classActivePre/
  classActiveCode JSDoc still said 'has diff' even though this
  transformer is for error/warning annotations. Fixed accordingly.

- style-to-class: function-level JSDoc was 'Remove line breaks between
  lines' (copied verbatim from remove-line-breaks.ts). Replaced with
  an accurate description of what the transformer actually does.

- parse-comments: removed exported v3ClearEndCommentPrefix which was
  defined but never called anywhere in the codebase (dead code).
  The sibling v1ClearEndCommentPrefix is correctly wired up and kept.
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 25, 2026

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit 5d069b8
🔍 Latest deploy log https://app.netlify.com/projects/shiki-matsu/deploys/699e97a04cd0f6000820cae8
😎 Deploy Preview https://deploy-preview-1247--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 25, 2026

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit 5d069b8
🔍 Latest deploy log https://app.netlify.com/projects/shiki-next/deploys/699e97a09738050008144291
😎 Deploy Preview https://deploy-preview-1247--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.33%. Comparing base (4bea1a5) to head (5d069b8).
⚠️ Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1247      +/-   ##
==========================================
+ Coverage   95.25%   95.33%   +0.08%     
==========================================
  Files          92       92              
  Lines        8008     8025      +17     
  Branches     1704     1715      +11     
==========================================
+ Hits         7628     7651      +23     
+ Misses        374      368       -6     
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant