com.bovinelabs.analyzers icon indicating copy to clipboard operation
com.bovinelabs.analyzers copied to clipboard

Add analyzers to csc.rsp?

Open kamyker opened this issue 5 years ago • 2 comments

From https://forum.unity.com/threads/suggesting-solutions-for-serializefield-warning.962112/#post-6300914 what do you think about adding analyzers to csc.rsp to make them show also in unity console?

kamyker avatar Sep 11 '20 07:09 kamyker

Not sure about csc.rsp but it seems like that command (or Microsoft.Unity.Analyzers) doesn't work by default in Unity 2020.1 but should in 2020.2.

https://forum.unity.com/threads/suggesting-solutions-for-serializefield-warning.962112/#post-6307188

kamyker avatar Sep 13 '20 11:09 kamyker

That's kind of cool.

A random note about analyzers; Unity has added native support for analyzers in 2020.2 https://docs.unity3d.com/2020.2/Documentation/Manual/roslyn-analyzers.html

The only quirk at the moment is I couldn't get the ruleset to work, which makes it a bit useless for me. Maybe this has been fixed since I last tried though.

tertle avatar Sep 13 '20 23:09 tertle