require-is-empty-with-length Require isEmpty alongside a length accessor A visible length property without isEmpty makes callers derive a common collection predicate themselves. Instead, you SHOULD provide isEmpty in the same static or instance namespace. - Category: style - Level: warning - Fix: none - Scope: module Reported interface Sequence { get length(): isize; } Accepted interface Sequence { get length(): isize; get isEmpty(): boolean; } Prior art - Clippy ยท lenwithoutisempty language/linter/src/rules/style/requireisemptywithlength.rs:7