Skip to content

Markdown lint hook fails with unexpected output #652

@steinybot

Description

@steinybot

With the following .overcommit.yml:

PreCommit:
  Mdl:
    enabled: true

And a README.md:

## Oops

Then attempting to commit will fail with:

Analyze markdown files with mdl.................................[Mdl] FAILED
Unexpected output: unable to determine line number or type of error/warning for output:

A detailed description of the rules is available at https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md

Running mdl README.md manually will show:

README2.md:1: MD002 First header should be a top level header

A detailed description of the rules is available at https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md

I guess this extra line in the output may be new in mdl and has broken the hook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions