Skip to content

Feature: support config rule comments.ignore-regex #545

@mikaello

Description

@mikaello

In many of our YAML files, we got markers starting with # renovate: and those can be quite long depending on how much information we need to include in this marker, they cannot be divided into multiple lines, thus often violating the rules.line-length rule.

I have seen similar problems with #cloud-config, violating the rules.comments.require-starting-space: true rule.

I, therefore, propose (as has been done by @adrienverge multiple times already in #428 (comment), #416 (comment), #361 (comment)) to add the option, comments.ignore-regex, example usage:

rules:
  comments:
    ignore-regex:
      - ^#!\s*
      - ^#cloud-config
      - ^# renovate:

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