Overindented lines lint (similar to doc_lazy_continuation) (original) (raw)

What it does

The lint reports overindented lines, for instance in bullet lists (and potentially elsewhere?).

This could perhaps be considered a false negative of doc_lazy_continuation, but "lazy continuation lines" only cover removing indentation, not adding it.

Advantage

The advantages would be similar to doc_lazy_continuation:

Drawbacks

No response

Example

/// - a /// b pub fn f() {}

Could be written as:

/// - a /// b pub fn f() {}