Skip to content Aller au contenu

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

structure.long-enumeration

What it flags

Inline prose enumerations that would be clearer as a bulleted list — 5+ comma-separated items closed by a coordinator (and, or, et, ou).

At a glance

Categorystructure
Default severitywarning
Default weight1
LanguagesEN · FR (identical detection)
Sourcesrc/rules/long_enumeration.rs, shared helper src/rules/enumeration.rs

Detection

Sequence of min_items or more short comma-separated segments ending with , and / , or / , plus / , et / , ou (Oxford comma optional). Shared detector also informs structure.excessive-commas.

Parameters

KeyTypeDefault
min_itemsint5

Diagnostic message

Suggests converting the enumeration to a bulleted list.

Examples

lucid-lint reports; the rewrite is always yours.

English

Six items, colour-matched across the rewrite — each inline term lines up with its bullet.

Before (flagged):

The dish contains tomato, onion, garlic, basil, parsley, and thyme.

What lucid-lint check --profile public reports:

warning input.md:1:1 Inline enumeration of 5 items. Consider converting it into a bulleted list so readers can scan the items. [structure.long-enumeration]

After (your rewrite):

The dish contains:

  • tomato
  • onion
  • garlic
  • basil
  • parsley
  • thyme

Suppression

See Suppressing diagnostics.

References

See References for the full bibliography.