Skip to content

Releases: microsoft/Microsoft.Unity.Analyzers

1.8.1

24 Feb 23:19
Compare
Choose a tag to compare

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

  • Added UNT0018 diagnostic. You should not use System.Reflection features in performance critical messages like Update, FixedUpdate, LateUpdate, or OnGUI.
  • Improved USP0003 and USP0005 suppressors, with support for all AssetPostprocessor static methods.
  • Added USP0016 suppressor for CS8618. C# 8.0 introduces nullable reference types and non-nullable reference types. Initialization detection of types inheriting from UnityEngine.Object is not supported and will result in errors.

1.8.0

24 Feb 23:18
77bd76e
Compare
Choose a tag to compare

1.7.1

24 Feb 23:16
a99985a
Compare
Choose a tag to compare

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

  • Added USP0013 suppressor for CA1823. Private fields with the SerializeField or SerializeReference attributes should not be marked as unused (FxCop).
  • Added USP0014 suppressor for CA1822. Unity messages should not be flagged as candidates for static modifier (FxCop).
  • Added USP0015 suppressor for CA1801. Unused parameters should not be removed from Unity messages (FxCop).
  • Added MenuItem support to the USP0009 suppressor.
  • Fixed USP0001 and USP0002 suppressors not working with extra parentheses or with method arguments.

1.7.0

24 Feb 23:14
e1efba6
Compare
Choose a tag to compare

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

  • Added UNT0015 diagnostic. Detect incorrect method signature with InitializeOnLoadMethod or RuntimeInitializeOnLoadMethod attribute.
  • Added UNT0016 diagnostic. Using Invoke, InvokeRepeating, StartCoroutine or StopCoroutine with a first argument being a string literal is not type safe.
  • Added UNT0017 diagnostic. SetPixels invocation is slow.
  • Fixed USP0004, USP0006 and USP0007 suppressors with the following rules: suppress IDE0044 (readonly), IDE0051 (unused), CS0649 (never assigned) for all fields decorated with SerializeField attribute. Suppress CS0649 (never assigned) for public fields of all types extending Unity.Object.
  • Fixed generic type parameter checking for UNT0014 diagnostic.