This repository was archived by the owner on Jun 28, 2026. It is now read-only.
Support for generating YAML diff files in Content.YAMLLinter#48
Open
mqole wants to merge 10 commits into
Open
Conversation
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
space-wizards/RobustToolbox#6131
requires Space-Wizards-Federation/space-station-14#109 to work with command line
I take no credit for all the node parsing, @perryprog did the initial work on this. I just iterated off that.
using
IPrototypeManagerto serialize entities we can output a .yml list of entities that includes components inherited from parents. Using the DiffPlex library (which i hope i have added correctly?) we can then generate a differential between two of these .yml lists.NOTE: have been told from a reputable source (april) that Diffplex is kinda doodoo. If we dont want to use it someone may need to help write some new diff tooling (april also volunteered for this, but that was months ago)
Also got a content-side PR to add arguments to

Content.YAMLLinter's command line to be able to run this pretty easily.To use, first run with
--saveto create the before state, make changes, then run with--diff.example output git gist
I dont have a strong frame of reference for a lot of the systems this PR works with so am more than happy to make any changes that may improve code functionality or readability.