Add Support for Pre-Commit Hooks
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- git
- 領域
- tooling
調査の方向性
まず、提案されている .pre-commit-config.yaml と、要求されている trailing-whitespace および line-ending フックを確認してください。プロジェクトがサポートするチェックと修正を定義し、そのうえで、contributors が設定を一貫して使用でき、コミット前に記載された問題を防止できることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Summary
I would like to propose adding support for pre-commit hooks to the project. Implementing this feature would help maintain code quality and prevent common issues, such as trimming trailing whitespaces and managing line endings, before code is committed.
Motivation
Using pre-commit hooks can automate checks and fixes for formatting issues, improving the overall code consistency and reducing errors. This would encourage developers to adhere to coding standards without needing to remember to run checks manually.
Benefits
Automatic Formatting: Ensure that code is consistently formatted before commits.
Error Prevention: Catch potential issues early in the development process.
Team Consistency: Align coding practices across all contributors.
Suggested Implementation
Introduce a configuration file (e.g., .pre-commit-config.yaml) to define hooks.
Include hooks for:
- Trailing whitespace removal
- Line ending normalization
- Any additional checks that would enhance code quality
Additional Notes
I believe this feature will greatly enhance our development workflow and help maintain a clean codebase. If there are any existing tools or libraries you’d recommend for implementing this, I’d love to hear about them!
- 主要言語
- Shell
- スター
- 1.5k
- フォーク
- 624
- 平均マージ
- 4日 8時間
- マージ済み PR(30日)
- 7
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
devcontainers/features のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
devcontainers/features#1730 ·
メンテナーはふだん 5 日以内に返信
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallback対応中かも @v-Kaniska244 が 36 日前に担当しました。 オープン
devcontainers/features#1726 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
-
[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nft再び着手できるかも @v-Kaniska244 が 54 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
devcontainers/features#1709 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
devcontainers/features#1707 ·
メンテナーはふだん 5 日以内に返信
-
Parser failure on "localEnv:" in devcontainer-feature.json再び着手できるかも @v-Kaniska244 が 69 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
devcontainers/features#1704 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
devcontainers/features の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
Installer computes steamid3 as -76561197960265728 when loginusers.vdf uses lowercase "timestamp"オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan config対応中かも @jfcabral が今日担当しました。 オープンBug Good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
armbian/build#10995 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
package-update
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
oSoWoSo/vOid_Community_repOsitory#417 ·
メンテナーはふだん 1 日以内に返信