Add Unused Dependency Check for Ruby Gems
まだ誰も着手していません。
評価
調査の方向性
Start by reviewing the main CI workflow and the current Gemfile, then investigate whether degem works reliably and compare the suggested alternatives bundle-checker and gem-unused. Done means a stable dependency check is integrated, reports current unused gems, handles documented false positives, and fails CI when unused dependencies are detected.
索引モデルが issue の本文から書いたものです。
説明
feat: Add Unused Dependency Check for Ruby Gems
Description:
To maintain a clean and efficient codebase, we need to add an automated process to the zitadel/client-ruby CI pipeline. The goal of this process is to detect and report any gems listed in the Gemfile that are no longer used in the project. The initial tool considered for this task was degem.
Problem:
The proposed tool, degem, does not appear to be functional in our current environment. Further investigation suggests the tool may be unmaintained, with its last commit several years ago. This makes it an unreliable choice for our CI pipeline, as it may have compatibility issues with modern Ruby versions and bundler.
Impact:
- Without an automated check, the project is at risk of accumulating unused dependencies over time.
- Unused gems lead to project bloat, slower
bundle installtimes, and an increased potential security surface. - The dependency tree is less clear, making maintenance more difficult for developers.
Tasks:
- Attempt a final investigation to determine if
degemcan be made to work reliably. - If
degemis not viable, research and evaluate alternative tools for detecting unused Ruby gems (e.g.,bundle-checker,gem-unused). - Select a reliable tool and integrate it into the CI pipeline as a new check.
- Run the tool on the codebase and generate an initial report of unused dependencies.
- Configure the tool to ignore any known false positives (e.g., gems used by frameworks or other tools but not directly required in the code).
- Create a follow-up pull request to remove the confirmed unused gems from the
Gemfile.
Expected Outcomes:
- The CI pipeline includes a job that automatically fails if it detects unused gems in the
Gemfile. - The project's dependencies are kept clean and minimal, improving maintainability and reducing bloat.
- Developers are immediately notified of unused dependencies when contributing code.
Additional Notes:
- The primary goal is to establish a reliable dependency check, not necessarily to use
degem. The chosen solution should be stable and actively maintained. - This task will likely require updating the main CI workflow file to add a new step for the dependency analysis.
- 主要言語
- Ruby
- スター
- 6
- フォーク
- 2
- 平均マージ
- 11分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
zitadel/client-ruby のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
zitadel/client-ruby#87 ·
-
Release SDK for V5対応中かも @mridang が 313 日前に担当しました。 オープン
zitadel/client-ruby#76 · 担当者 1 名 ·
-
Fixed the messy auto-generated serde logic in the library対応中かも @mridang が 522 日前に担当しました。 オープン
zitadel/client-ruby#29 · 担当者 1 名 ·
-
Update Qodana Linter for Ruby Support対応中かも @mridang が 120 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
zitadel/client-ruby#27 ·
zitadel/client-ruby の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Homebrew/homebrew-core#317477 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hanami/hanami-cli#453 ·
-
area/web interface
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
mastodon/mastodon#41009 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yegor256/ellipsized#131 ·