Skip to content

Lint rule: maximum line length #21

Description

@roxspring

Implement a lint rule that reports lines exceeding a configurable maximum length.

Scope

  • Configurable maximum (default: 120 characters)
  • Operates on the raw source lines of each .md file
  • Reports file path and line number for each violation
  • Optionally skips lines inside fenced code blocks (configurable, default: skip)
  • Optionally skips front matter (configurable, default: skip)

Example violation

guide/editor.md:34: line length 147 exceeds maximum 120

Acceptance criteria

  • Lines within limit: no violation
  • Lines exceeding limit: violation reported with line number
  • Lines inside fenced code blocks skipped by default
  • Front matter lines skipped by default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions