vtcode 0.128.2

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
id: no-var
language: Kotlin
severity: warning
message: Prefer `val` over `var` for immutability
note: |
  Kotlin encourages immutability. Use `val` unless the variable genuinely needs
  reassignment. This reduces bugs from unintended mutation and makes code easier
  to reason about.
rule:
  kind: property_declaration
  any:
    - pattern: "var $NAME: $TYPE"
    - pattern: "var $NAME = $VALUE"
files:
  - src/**/*.kt
  - src/**/*.kts
  - tests/**/*.kt