vtcode 0.123.7

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
14
id: no-unnecessary-list
language: python
severity: hint
message: Remove unnecessary `list()` wrapper around a list comprehension.
note: |
  `list([...])` allocates an intermediate list that the outer `list()`
  then copies. A bare list comprehension is equivalent and avoids the
  extra allocation. This is a safe autofix.
rule:
  pattern: list($LC)
constraints:
  LC:
    kind: list_comprehension
fix: $LC