Skip to content

Releases: microsoft/Microsoft.Unity.Analyzers

1.12.0

19 Jan 19:09
2ba87b1
Compare
Choose a tag to compare

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

25 Nov 15:58
d625cde
Compare
Choose a tag to compare

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).

1.11.1

01 Sep 12:53
e4bb47c
Compare
Choose a tag to compare

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

1.11.0

02 Jun 18:40
159cbbb
Compare
Choose a tag to compare

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

  • Added UNT0025 diagnostic. Prefer Input.GetKey overloads with KeyCode argument.
  • Added more invalid usages (static and readonly fields) to UNT0013 diagnostic.
  • Fixed issues with explicit method implementations and UNT0006 diagnostic.

1.10.2

29 Apr 16:54
7feba28
Compare
Choose a tag to compare

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

  • Added UNT0024 diagnostic. Give priority to scalar calculations over vector calculations.

1.10.1

20 Apr 02:49
Compare
Choose a tag to compare

1.10.0

24 Feb 23:22
706b0a0
Compare
Choose a tag to compare

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

  • Added UNT0019 diagnostic. Unnecessary indirection call for GameObject.gameObject.
  • Added UNT0020 diagnostic. MenuItem attribute used on non-static method.
  • Added UNT0021 diagnostic. Unity message should be protected (opt-in).
  • Added UNT0022 diagnostic. Inefficient method to set position and rotation.
  • Added UNT0023 diagnostic. Coalescing assignment on Unity objects.
  • Added USP0017 suppressor for IDE0074. Unity objects should not use coalescing assignment.

1.9.1

24 Feb 23:21
ab6b6f6
Compare
Choose a tag to compare

1.9.0

24 Feb 23:21
951ce00
Compare
Choose a tag to compare

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

  • Fixed UNT0006 diagnostic, giving wrong warnings for Coroutines and AssetPostprocessor.OnAssignMaterialModel.

1.8.2

24 Feb 23:20
Compare
Choose a tag to compare

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

  • Improved UNT0010 diagnostic to apply to everything inheriting from Component, not just MonoBehaviour.