Code inspection: Incorrect Odin's group attribute type
This inspection ensures consistency across group definitions for class members when using Odin Inspector grouping attributes.
How it works
In Odin Inspector, a group must have a consistent type. Defining the same group path with different attribute types (e.g., mixing BoxGroup and HorizontalGroup for the same path) is ambiguous and can lead to unpredictable layout behavior in the Unity Inspector.
The analyzer collects all grouping attributes within a class and identifies conflicts where a specific group path (e.g., "General/Settings") is associated with more than one type of attribute. If a member uses an attribute that differs from the one already established for that group path, it flags the attribute name and suggests the expected attribute.
Example
In this example, field1 defines "MyGroup" as a BoxGroup, but field2 incorrectly attempts to use HorizontalGroup for the same path. The quick-fix changes the attribute to match the rest of the group.