Skip to content

[BUG] YAML duplication due re-ordering #613

@usernotnull

Description

@usernotnull

Describe the bug
Changing the YAML list order causes sr-* entry duplication.

To Reproduce

Add a new YAML entry at the bottom of the metadata list.

Expected behavior
The plugin should replace all sr-* entries by search & replace, not expecting the entries to be at the bottom.

Additional context
I am using a linter to sort YAML key order, which causes this issue.
Regardless of linting or not, one has to keep in mind to be careful about the metadata entries they're adding. Otherwise, it would cause duplicate entries for this plugin, which could be avoided with a search & replace or a completely different approach, as #162.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions