Repository navigation
fix(lint): close the Rust and TypeScript items of #196 - #259
Conversation
…rs enforce The lints that replaced these lines are enabled only in projects created from the templates, so other projects lost the guidance. Restore the unwrap/expect/indexing, panics documentation, todo!/unimplemented!, pub, exhaustive match and to_owned lines, the package-level lint guard, and the promise lint sentence. Refs #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Widen the matchers recorded in #196: a turbofish or struct-literal collaborator, a `&'a mut` collection, a closure bound by `let`, a trait method declaration, a serde type after a block comment, a comment just before a function, and a field or property chain that ends without a call. The TypeScript collection rule skips `readonly` and `Readonly*` return types and selects a method without a return type, with the file as context. New fixtures cover each form; the paths rule gains raw string, qualified format! and escape cases. The changed suites need a new eval baseline. Refs #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ew baselines Accept the 2026-11-19 eval baselines of the eleven suites whose matchers changed, move each cutoff to the fitted midpoint, and restate the fit in the comments. Drop the inconclusive exemptions the new fixtures made stale and declare the TypeScript collection rule unstable on its weakest violation. The comment rules could not see a comment written before a function under `state: local`: send the file and ask about that comment too. Those two suites need one more eval. Refs #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Accept the 2026-11-19 baselines of the Rust and TypeScript comment rules, which now see a comment written before a function, and move both cutoffs to the fitted midpoint. The TypeScript fixtures sit far from the cutoff, so that rule declares itself blind. Refs #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryThis PR restores the Rust and TypeScript style text, widens the matchers, and refits the cutoffs. I read the rule, fixture, expect and test changes. I did not run Findings
Looks fine
🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5451e37c70
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🤖 I have created a release *beep* *boop* --- ## [0.3.1](v0.3.0...v0.3.1) (2026-11-20) ### Bug Fixes * **hooks:** do not count a printf whose format holds %n as writing nothing ([#262](#262)) ([f3a4543](f3a4543)) * **hooks:** judge gh beside commands that write nothing as gh alone ([#256](#256)) ([540bbad](540bbad)) * **hooks:** stop asking for gh calls whose target and arguments are known at hook time ([#254](#254)) ([f4aa355](f4aa355)) * **lint:** close the Rust and TypeScript items of [#196](#196) ([#259](#259)) ([1d2a81e](1d2a81e)) * **lint:** select the Go model-rule forms deferred in [#196](#196) ([#257](#257)) ([8c347fe](8c347fe)) * **lint:** widen three Python model-rule selectors deferred in [#196](#196) ([#258](#258)) ([b3fc801](b3fc801)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
#196 の Rust / TypeScript の項目(lane
rsts)を片付ける.template の linter だけが強制する文章を戻し,Jev の Rust / TS 規則の matcher を #196 で見逃した書き方まで広げ,新しい baseline で cutoff を当て直した.規則はすべて advisory のまま(ADR-0027).Refs #196
変更
&'a mut・letのクロージャ・trait のメソッド宣言・block comment 後の serde 型・関数直前のコメント・呼び出しで終わらないフィールド連鎖を選ばないReadonlyArrayなどを選ぶ.戻り値型のないメソッド・関数直前のコメント・呼び出しで終わらないプロパティ連鎖を選ばないreadonly/Readonly*は選ばない.残りは選ぶstate: local(直前のコメントがモデルに見えない)state: located,ask / criteria に「直前のコメント」を追加state: localstate: located(戻り値型がないときは field の型をファイルから読む)項目ごとの状態
errors.mdのunwrap_used/expect_used/indexing_slicing,# Panics(helper 経由を含む),todo!/unimplemented!errors.mdの promise lint の 1 文tooling.mdの package-level guard,types.mdのto_owned()と網羅的match,package_design.mdのpubconstruction-separate-from-execution:turbofish,構造体リテラルno-exposed-mutable-collection:Rust&'a mut,TSReadonly*の除外,TS 戻り値型の省略function-single-purpose:Rust のletクロージャconversion-and-query-names-follow-rust-convention:trait のメソッド宣言serde-types-follow-config-conventions:block comment,複数行 derive(?s))no-comment-restating-code:関数直前のコメント(Rust / TS 分)no-reaching-through-collaborators:呼び出しで終わらない連鎖(Rust / TS 分)paths-are-joined-not-formatted:raw string,std::format!/alloc::format!,エスケープ,入れ子のreplaceの fixturepublic-types-protect-invariants:tuple struct・スカラーの fixturedomain-states-are-enumsの文章types.mdの網羅的matchを戻した)suite,it.concurrent,Date(),getRandomValues,pair/export default/Promise.reject,クラスのフィールド,state: located各種,同名ヘルパー)rs_no_mocking_library:automock,pub use,グループuse,cfg_attrrs_no_follow_links:import 別名,途中で型を変える連鎖Limitsに記録)rs_fs_call_needs_context,rs_no_get_prefix(extern "C",コメントを挟む属性),ts_*/tsx_*の ast-grep 規則すべて検証
tests/test_model_rule_files.py::test_rule_selects_each_form_recorded_for_it):実装前に 12 件失敗,実装後に通過jev-lint eval --accept(ユーザー実行,2026-11-19 11:35Z と no-comment 2 suite の 12:19Z).cutoff は fitted midpoint に合わせたjev-lint eval --replay:74 suite すべて as shippeduv run pytest:6184 passed,2 skippedcutoff
violating.ts:12が 0.92〜0.96)範囲・前提・制限
rsts).Go / Python / 共有ファイルは他の lane.fix(lint): address review findings deferred from the #74 migration PRs #196 は閉じない.inconclusiveに記録).state: locatedにした 3 規則は 1 subject ごとにファイル全体を渡すので,入力 token が増える.rust/serde-types-follow-config-conventions:violating.rs:26が 0.29〜0.43 と揺れる.cutoff 0.24 との差は平均で 0.14 で,jev-lint はinconclusive: Unstableを stale として拒否する.rust/no-comment-restating-code:clean の doc comment(conforming.rs:30,0.44〜0.50)と bad(0.62〜0.66)の間が狭い.///の付いた関数もすべて subject になるので,公開 API の doc comment で誤検出がありうる.typescript/no-exposed-mutable-collection:戻り値型のない scalar の getter(getName() { return this.name; })も subject になり,ファイル全体を渡す.入力 token と誤検出が増えうる.rust/construction-separate-from-executionは,型引数がネストした turbofish(ApiClient::<Wrapper<T>>::new)とApiClient<Wrapper<T>>::newを選ばない.正規表現の<[^>]*>が内側の>で止まるため.次に Rust 規則を fit し直すときに AST 条件で直す.🤖 Generated with Claude Code