Files
RobustToolbox/Robust.Shared
Tayrtahn c1737a540f Analyzer & Fixer for redundant Prototype type strings (#5718)
* Add Prototype analyzer

* Add Prototype fixer

* Early return after finding prototype attribute

* Add PrototypeEndsWithPrototypeRule diagnostic

* Oops. Uncomment parallelizable.

* Rework to ignore redundancy for non-literal string values

* Allow redundancy when removal would expose class name not ending in "Prototype"

* Promote PrototypeEndsWithPrototypeRule from warning to error, since it causes a runtime error.

* No need to get the symbol to get the class identifier

* Minor cleanup

* A little more cleanup

* More specific location for redundant name

* Refactor redundant name fixer so argument order is no longer important

* Add failing test

* Use symbol analysis to fix alias handling

* Oops! We have to go back to the previous syntax-based approach.

Now it's a hybrid.

Also fixed tests to not copy the prototype definitions.

---------

Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
2025-12-17 18:15:32 +01:00
..
2024-07-10 01:38:32 +02:00
2023-12-12 20:17:36 +11:00
2025-02-16 19:29:32 +11:00
2024-06-05 16:32:56 +10:00
2025-06-23 22:47:50 +02:00
2022-04-17 18:02:35 +02:00
2023-07-01 22:02:12 +10:00
2025-12-14 17:46:41 +01:00
2025-12-16 01:36:53 +01:00
2025-12-15 19:36:16 +01:00
2025-12-17 16:55:33 +01:00
2025-11-30 16:30:45 +01:00
2025-12-15 19:36:16 +01:00
2025-12-16 01:36:53 +01:00
2025-12-15 22:40:42 +01:00
2025-04-26 22:59:02 +10:00
2025-04-26 22:38:56 +10:00