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: avoid-duplicate-export
language: Rust
severity: warning
message: Item re-exported via `pub use` when `pub mod` already exposes the module.
note: |
  When a source file already has `pub mod foo;`, adding `pub use foo::Bar;`
  creates a duplicate export path. Consider removing the `pub use` or making
  the module private (`mod foo;`) to keep the API surface unambiguous.
rule:
  all:
    - pattern: "pub use $A::$B;"
    - inside:
        kind: source_file
    - has:
        pattern: "pub mod $A;"
        stopBy: end
files:
  - "**/*.rs"