Skip to content

refactor: delete unused symbols - #766

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-11776-delete-unused-symbols
Oct 29, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-11776-delete-unused-symbols

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

This removes symbols that nothing in the repository used besides their own definitions and tests: listFiles and templatesFor from the facts logic, and DEFAULT_SCORE_LEVELS, CheckRef, applyRecommended and customRuleId from the check pack contract. Imports that only those functions used are removed too.

The two check pack tests that covered applyRecommended and customRuleId are removed. The check pack test that mixed customRuleId with readCheckPack validation keeps its validation checks and uses literal ids instead.

Verified with bun run check, bun run lint (no hits in the touched files), and the unit tests of packages/triage-contracts and packages/triage-workflows. A repository-wide search finds no remaining references to the removed names.

Closes CL-11776

@linear-code

linear-code Bot commented Oct 29, 2026

Copy link
Copy Markdown

CL-11776

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review October 29, 2026 15:50
@corbits-triage

corbits-triage Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Notes:

  • Risk: medium (2 recently fixed files)

@corbits-triage corbits-triage Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removes several unused symbols (listFiles, templatesFor, DEFAULT_SCORE_LEVELS, CheckRef, applyRecommended, customRuleId) and their dependent imports and tests across the check pack contract and facts logic, with a README update. No findings were reported for this change.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 850435d Oct 29, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant