Microsoft.Unity.Analyzers Versions Save

Roslyn analyzers for Unity game developers

1.19.0

2 months ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.19.0

  • Fixed trivia handling with UNT0021, when using messages without modifiers.
  • Fixed batch provider for all diagnostics.
  • Fixed UNT0034 and UNT0035 with ambiguous overloads.

1.18.0

6 months ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.18.0

  • Added USP0021, Prefer reference equality.
  • Added support for TransformAccess with UNT0022 and UNT0032
  • Added UNT0036, Inefficient method to get position and rotation.
  • Added UNT0037, Inefficient method to get localPosition and localRotation.
  • Fixed USP0008 with partial types.

1.17.0

1 year ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.17.0

  • Added UNT0034, A Vector3 can be converted into a Vector2.
  • Added UNT0035, A Vector2 can be converted into a Vector3.
  • Added support for help links for all analyzers.

1.16.1

1 year ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.16.1

  • Added USP0020, The Unity runtime invokes Unity messages.

1.16.0

1 year ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.16.0

  • Fixed UNT0033 to support all OnPostprocessAllAssets overloads.

1.15.0

1 year ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.15.0

  • Updated UNT0006 to support all OnPostprocessAllAssets overloads.
  • Added UNT0031, Asset operations in LoadAttribute method.
  • Added UNT0032, Inefficient method to set localPosition and localRotation.
  • Added UNT0033, Incorrect message case.
  • Bumped severity to Warning for UNT0033, UNT0015 and UNT0006 diagnostics.
  • Fixed inline ifs incorrectly processed by UNT0026.

1.14.0

1 year ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.14.0

  • Added UNT0027, Prevent call to default PropertyDrawer.OnGUI() implementation.
  • Added UNT0028, Use non-allocating physics APIs.
  • Added UNT0029, Pattern matching with null on Unity objects.
  • Added UNT0030, Calling Destroy or DestroyImmediate on a Transform.

1.13.0

2 years ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.13.0

  • Updated UNT0015 and USP0012 to support DidReloadScripts attribute.
  • Added USP0019, Don't flag private methods decorated with PreserveAttribute or UsedImplicitlyAttribute as unused.
  • Added USP0018, Unity objects should not be used with throw expressions.

1.12.0

2 years ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.12.0

  • Added UNT0026, GetComponent always allocates, to use TryGetComponent instead.
  • Updated UNT0003, usage of non generic GetComponent, to work with TryGetComponent as well.
  • Updated UNT0014, GetComponent called with non component/interface, to work with TryGetComponent as well.
  • Updated USP0016, Initialization detection with nullable reference types, to work with non-Unity objects.
  • Updated UNT0006, Incorrect message signature, when checking instance or static methods.

1.11.2

2 years ago

https://www.nuget.org/packages/Microsoft.Unity.Analyzers/1.11.2

  • Added CancelInvoke support to UNT0016 diagnostic (Unsafe way to get the method name).
  • Added ScriptedImporter and AssetPostprocessor classes to well known Unity message containers.
  • Correctly handle overridden messages with the opt-in UNT0021 diagnostic (Unity message should be protected).