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
15
16
17
18
id: no-unnecessary-pass
language: python
severity: hint
message: Remove `pass` when the block has other statements.
note: |
  `pass` is only needed as a placeholder when a block would otherwise be
  empty. When the block already contains other statements, `pass` is
  dead code and should be removed.
rule:
  kind: pass_statement
  inside:
    kind: block
    has:
      kind: expression_statement
      stopBy: end
files:
  - "**/*.py"
  - "!tests/**"