AOSSIE-Org / AOSSIE-Org/Resonate

DX: Implement Pre-commit Hooks for Automated Dart Formatting and Linting

オープン
#682 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
344
フォーク
350
PR マージ指標
30日以内にマージされた PR はありません

説明

Description
The Problem: Currently, the Resonate project relies on GitHub Actions (CI) to catch formatting and linting errors. While effective, this creates a slow feedback loop for contributors:
A contributor pushes code.
They wait several minutes for CI to run.
CI fails because of a missing comma or a formatting nitpick.
The contributor has to push a "fix formatting" commit, cluttering the git history.

The Suggestion: I propose adding a .pre-commit-config.yaml file to the root directory. This will allow developers to use the pre-commit framework to automatically run dart format and dart analyze locally before a commit is even created.

Benefits:
Cleaner Git History: No more "fix linting" or "apply dart format" commits.
Faster Feedback: Contributors see errors instantly in their terminal.
Standardization: Ensures every PR adheres to the project's specific analysis_options.yaml without manual oversight.

Proposed Implementation
The implementation would involve adding a configuration file using the pre-commit framework with hooks specifically for the Dart SDK

As an aspiring GSoC contributor, it will be a great learning experience for me if I get to work on this issue. Looking forward to get assigned. Thanks !

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。