Garethp / Rider-RimworldDevelopment

MIT License
9 stars 2 forks source link

Add Warnings and Quickfixes for Vectors #37

Open Garethp opened 8 months ago

Garethp commented 8 months ago

Annoyingly, the XML Parsing for Vector2 and Vector3 is very, very permissive. Core and DLC XML will have values like

<volume>(1.1, 0.75, 1.1)</volume>
<volume>1.1, 0.75, 1.1</volume>
<volume>(1.1, 0.75, 1.1</volume>
<volume>1.1, 0.75, 1.1)</volume>

While our own ProblemAnalyzers should be as equally permissive as Core and not flag up anything they do without errors as an Error, we should still provide soft warnings for that sort of inconsistency and offer a Quick Fix to help make it easier to stay consistent