unused-exports

作成者: openshift

他のファイルから一度もインポートされていないエクスポートされたシンボルを検出します。ユーザーが「エクスポートを確認」「未使用のエクスポート」と言ったり、エクスポートの整理を依頼した場合に使用します。

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.

openshiftのその他のスキル

openshift-expert
openshift
OpenShiftプラットフォームとKubernetesのエキスパートであり、クラスターアーキテクチャ、オペレーター、ネットワーキング、ストレージ、トラブルシューティング、CI/CDパイプラインに関する深い知識を持つ。使用…
official
find-token
openshift
隠された認証トークンを見つけます。find-tokenスクリプトを実行して、ユニークなトークンを取得します。
official
code-review
openshift
プルリクエストのコード品質、正確性、プロジェクト規約をレビューします。ユーザーがPRのレビュー、コードレビュー、または変更の確認を依頼した場合に使用します。
official
css-review
openshift
CSSのコーディングスタイル、PatternFlyトークンの使用法、ベストプラクティスをレビューします。ユーザーがCSSのレビュー、スタイルの確認、CSSファイルの監査を依頼した場合に使用します。
official
review-readmes
openshift
リポジトリ内のすべてのREADME.mdファイルをレビューし、タイポ、エラー、古い情報をチェックします。ユーザーがREADMEのレビューやドキュメントの正確性の確認などを依頼したときに使用します。
official
review-skills
openshift
プロジェクトのAIスキルを重複、古い参照、誤り、構造上の問題についてレビューします。ユーザーがスキルのレビュー、監査、チェックを依頼した場合に使用します。
official
test
openshift
タグでフィルタリングされたエンドツーエンドテストを実行します。ユーザーがテストの実行、Playwrightの実行、または@coreや@attachのような特定の機能タグのテストを依頼した場合に使用します。
official
update-version
openshift
現在のブランチ上の全ファイルに含まれるプロジェクトのバージョン番号を更新します。単一ブランチでのバージョンアップ時に使用します。完全な…
official