Skip to content

Change YAML multiline string style for comments #120

@sschuberth

Description

@sschuberth

I just realized that the | we're currently using for multiline curation comments adds a trailing newline. This becomes visible as \n as part of the resolved configuration in analyzer results:

  - provider:
      id: "DefaultDir"
    curations:
    - id: "Maven:com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"
      curations:
        comment: "This library is empty as its version string suggests.\n"
        is_metadata_only: true

This is not so nice. Thus I'm proposing to change comments to use >- instead, which strip the final newline and also folds lines.

Opinions @fviernau, @mnonnenmacher?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions