Search files when nothing matches mention ignoring case run

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

まず internal/tools/search.go で、search_files が大文字と小文字を区別する検索で一致がない場合をどのように処理するかを追い、次に関連するテストを internal/tools/search_test.go で読みます。大文字と小文字を区別しない一致と、どちらの場合も一致がないケースのテストを追加します。ヒントに正しい件数が含まれ、完全一致の応答が現在のまま維持され、make check が成功すれば完了です。

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

説明

good first issue tools

What

search_files is case-sensitive unless the model passes ignore_case as true. If the search finds nothing we want to automatically run it case insensitive and if targets are found recommend to the model to re run it to see them.

Where

  • internal/tools/search.go
  • internal/tools/search_test.go

Fix

when a case-sensitive search finds nothing, run it again ignoring case. If that finds matches, reply with a hint plus the count, for example:

no matches for "shipping". 4 matches ignoring case; call search_files again with ignore_case true to see them.

Don't return the case-insensitive matches themselves. The reply should stay short, and the model should choose to ask for them.

Done when

  • No exact matches but some case-insensitive ones gives the hint, with the right count.
  • No matches either way gives today's reply, unchanged.
  • An exact match behaves exactly as today.
  • Tests are added in internal/tools/search_test.go.
  • make check passes.
主要言語
Go
スター
1
フォーク
2
平均マージ
12時間 55分
マージ済み PR(30日)
18

環境構築

はじめの一歩

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

Edwin-metcalf/MetCode のほかの issue

Edwin-metcalf/MetCode の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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