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
| Category | structure |
| Default severity | warning |
| Default weight | 1 |
| Languages | EN · FR (identical detection) |
| Source | src/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
| Key | Type | Default |
|---|---|---|
min_items | int | 5 |
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
References
See References for the full bibliography.