Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Onboarding + Enrollments] Canonical course-format validator only

オープン 初心者向け
#7 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
91/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, flutter, supabase
領域
backend

調査の方向性

supabase/schemas/dogpack/tables/enrollments.sql のデータベース制約を読み、docs/getting-started/first-contribution.md のセットアップガイドに従ってください。lib/onboarding/course_code.dart に純粋な Dart 関数を追加し、test/course_code_test.dart で列挙されたケースと出力の妥当性をカバーしてください。flutter test test/course_code_test.dart を実行してください。examples のケースと追加ケースがすべて通り、正規化された各値がデータベースの正規表現を満たせば完了です。

索引モデルが issue の本文から書いたものです。

説明

good first issue onboarding

What to build

Check whether a course code already matches DogPack’s required format, such as CSCI 1301. This helper only accepts or rejects the input; the following task handles friendlier typed spellings.

Files

Steps

  1. Add isValidCourseCode(input) using RegExp(r"^[A-Z]{4} [0-9]{4}[A-Z]?$").firstMatch(input).
  2. Accept only when match.start is 0 and match.end equals input.length. This prevents a trailing newline from being accepted as a complete match.
  3. Check CSCI 1301 and CSCI 1301L; reject lowercase, a trailing newline, the wrong number of letters/digits and extra text. This function checks the standard form without changing it.

Example

CSCI 1301/CSCI 1301L accepted; lowercase, trailing newline,3 letters,5 digits,extra text rejected.

Check it works

In test/onboarding/course_code_7_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/onboarding/course_code_7_test.dart and flutter analyze.

References

Assign yourself before starting, or comment to claim the issue. Project setup.

主要言語
PLpgSQL
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DevDogsUGA/DogPack のほかの issue

DevDogsUGA/DogPack の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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