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: prefer-string-is-empty
language: Java
severity: hint
message: Use `.isEmpty()` instead of `.length() == 0` or `.equals("")`.
note: |
  `str.isEmpty()` is more readable and idiomatic than `str.length() == 0` or
  `str.equals("")`. For null safety, consider `str == null || str.isEmpty()`.
rule:
  any:
    - pattern: $S.length() == 0
    - pattern: $S.equals("")
fix: $S.isEmpty()
files:
  - "**/*.java"