vtcode 0.128.4

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
1
2
3
4
5
6
7
8
9
10
11
12
13
id: prefer-unwrap-or-default
valid:
  - |
      let x = maybe_val.unwrap_or(42);
  - |
      let x = maybe_val.unwrap_or_default();
  - |
      let x = maybe_val.unwrap_or(String::from("hello"));
invalid:
  - |
      let x = maybe_val.unwrap_or(String::default());
  - |
      let x = maybe_val.unwrap_or(Vec::default());