google / google/codeworld

Requirements: if-then for source matcher

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

説明

The only requirements-checker rule that currently uses the source matcher is `containsMatch`. This rule requires that some declaration in the file matches the target. Another useful pattern could be to require that any declaration that matches the first pattern must *also* match the second. For example, one could write:

ifMatch:
condition: |
foo = $any
template: |
foo = $var $(tupleOf [| $any |])

This would say that if `foo` is defined, then its definition must look like a function applied to a tuple.

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

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

調査の方向性

まず、requirements checkerに既存するcontainsMatchルールとそのsource matcherをたどり、その動作を提案されたifMatch条件およびtemplateと比較します。fooの例に示されているように、最初のパターンにマッチする宣言が2番目のパターンにもマッチする必要がある状態になれば完了です。payloadには実行するファイルやテストの指定はありません。

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

評価

技術スタック
haskell
領域
tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

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

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