Releases: microsoft/Microsoft.Unity.Analyzers
Releases · microsoft/Microsoft.Unity.Analyzers
1.8.1
https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.8.1
- Added
UNT0018
diagnostic. You should not useSystem.Reflection
features in performance critical messages likeUpdate
,FixedUpdate
,LateUpdate
, orOnGUI
. - Improved
USP0003
andUSP0005
suppressors, with support for allAssetPostprocessor
static methods. - Added
USP0016
suppressor forCS8618
.C# 8.0
introduces nullable reference types and non-nullable reference types. Initialization detection of types inheriting fromUnityEngine.Object
is not supported and will result in errors.
1.8.0
1.7.1
https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.7.1
- Added
USP0013
suppressor forCA1823
. Private fields with theSerializeField
orSerializeReference
attributes should not be marked as unused (FxCop). - Added
USP0014
suppressor forCA1822
. Unity messages should not be flagged as candidates forstatic
modifier (FxCop). - Added
USP0015
suppressor forCA1801
. Unused parameters should not be removed from Unity messages (FxCop). - Added MenuItem support to the
USP0009
suppressor. - Fixed
USP0001
andUSP0002
suppressors not working with extra parentheses or with method arguments.
1.7.0
https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.7.0
- Added
UNT0015
diagnostic. Detect incorrect method signature withInitializeOnLoadMethod
orRuntimeInitializeOnLoadMethod
attribute. - Added
UNT0016
diagnostic. UsingInvoke
,InvokeRepeating
,StartCoroutine
orStopCoroutine
with a first argument being a string literal is not type safe. - Added
UNT0017
diagnostic.SetPixels
invocation is slow. - Fixed
USP0004
,USP0006
andUSP0007
suppressors with the following rules: suppressIDE0044
(readonly),IDE0051
(unused),CS0649
(never assigned) for all fields decorated with SerializeField attribute. SuppressCS0649
(never assigned) for public fields of all types extendingUnity.Object
. - Fixed generic type parameter checking for
UNT0014
diagnostic.