Roslyn analyzers for Unity game developers
https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.16.1
USP0020
, The Unity runtime invokes Unity messages.https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.16.0
UNT0033
to support all OnPostprocessAllAssets
overloads.https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.15.0
UNT0006
to support all OnPostprocessAllAssets
overloads.UNT0031
, Asset operations in LoadAttribute method.UNT0032
, Inefficient method to set localPosition and localRotation.UNT0033
, Incorrect message case.Warning
for UNT0033
, UNT0015
and UNT0006
diagnostics.inline ifs
incorrectly processed by UNT0026
.https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.12.0
UNT0026
, GetComponent
always allocates, to use TryGetComponent
instead.UNT0003
, usage of non generic GetComponent
, to work with TryGetComponent
as well.UNT0014
, GetComponent
called with non component/interface, to work with TryGetComponent
as well.USP0016
, Initialization detection with nullable reference types, to work with non-Unity objects.UNT0006
, Incorrect message signature, when checking instance or static methods.