Skip to content

Changelog can not be linted #415

@thompson-tomo

Description

@thompson-tomo

The changelog being generated for https://github.com/open-telemetry/opentelemetry-ruby-contrib fails markdown linting for a range of reasons:

  • MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]: There is no h2 heading above the versions hence jumping from h1 page title to h3 version
  • MD004/ul-style Unordered list style [Expected: asterisk; Actual: dash]: For pages which have existing changelogs using - this error is thrown. It should be configurable what symbol is used.
  • MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]: change log entries should have trailing whitespace removed.

These 3 issues are most of the 481 errors being reported for that one repo.

Other issues observed is that empty lines are sometimes being added between items. This likely ties into MD009 and not trimming. For this there is 230 instances which can be found using the following regex \*.+\R\R\*

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