Skip to content

Markdown lint (mdl) unclear output #678

@nitwof

Description

@nitwof

.overcommit.yml

PreCommit:
  Mdl:
    enabled: true

README.md

## test

Overcommit will fail with unclear message:

Running pre-commit hooks
Analyze markdown files with mdl.................................[Mdl] FAILED
Errors:
#<Overcommit::Hook::Message:0x00005637bca65c80>

mdl --json README.md will show:

[{"filename":"README.md","line":1,"rule":"MD002","aliases":["first-header-h1"],"description":"First header should be a top level header"}]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions