unused-exports

โดย openshift

Find exported symbols that are never imported by another file. Use when the user says "check exports", "unused exports" or asks to clean up exports.

npx skills add https://github.com/openshift/lightspeed-console --skill unused-exports

unused-exports

Step 1: Run ts-unused-exports

Version is pinned to guard against supply chain attacks:

npx ts-unused-exports@11.0.1 unit-tests/tsconfig.json \
  --findCompletelyUnusedFiles \
  --showLineNumber \
  --searchNamespaces

Step 2: Filter out entry points

Some exports are consumed externally by the OpenShift console framework, not by imports within this repo. Read package.jsonconsolePlugin.exposedModules and console-extensions.json$codeRef values to identify them. Exclude any finding that is a default export of an exposed module or is named in a $codeRef.

Step 3: Report findings

Group into unused exports and completely unused files. If nothing remains, report that all exports are accounted for. Do not modify any files.

Skills เพิ่มเติมจาก openshift

openshift-expert
openshift
ผู้เชี่ยวชาญด้านแพลตฟอร์ม OpenShift และ Kubernetes ที่มีความรู้เชิงลึกเกี่ยวกับสถาปัตยกรรมคลัสเตอร์ โอเปอเรเตอร์ เครือข่าย พื้นที่จัดเก็บข้อมูล การแก้ไขปัญหา และไปป์ไลน์ CI/CD ใช้…
official
find-token
openshift
Find the hidden verification token. Run the find-token script to retrieve a unique token.
official
code-review
openshift
Review a pull request for code quality, correctness, and project conventions. Use when the user asks to review a PR, code review, or examine changes on a…
official
css-review
openshift
Review CSS for coding style, PatternFly token usage, and best practices. Use when the user asks to review CSS, check styles, or audit CSS files.
official
review-readmes
openshift
Review all README.md files in the repo for typos, errors, and outdated information. Use when the user asks to review READMEs, check documentation accuracy, or…
official
review-skills
openshift
Review project AI skills for duplication, stale references, mistakes, and structural issues. Use when the user asks to review skills, audit skills, check for…
official
test
openshift
Run end-to-end tests filtered by tag. Use when the user asks to run tests, run Playwright, or test a specific feature tag like @core or @attach.
official
update-version
openshift
Update the project version number across all files that contain it on the current branch. Use when bumping the version on a single branch only. For a full…
official