Skip to content

Feature Release

Choose a tag to compare

@michael-damatov michael-damatov released this 10 Sep 22:42
· 132 commits to master since this release
29a199a

New Features

  • New analyzers (and quick fixes) for most base types (from the System namespace) that suggest
    • removing redundant arguments,
    • removing redundant method invocations,
    • replacing expressions with known results,
    • using patterns,
    • using operators.
  • New analyzers (and quick fixes) for well-known string formatters that suggest
    • removing redundant format specifiers,
    • removing redundant format precision specifiers,
    • replacing type casts with format specifiers
  • New warning that an [EditorBrowsable(EditorBrowsableState.Never)] annotation is missing on deconstruction methods.
  • New context action to convert an IEnumerable<T> object to a no-op LINQ query (where appropriate).

Improved

  • The LINQ analyzer now detects no-op queries (with a quick fix to remove the query).
  • The disposable object analyzer now allows annotating disposable structs with the [MustDisposeResource] annotation when a newer version of "JetBrains.Annotation" is used.
  • The disposable object analyzer now supports "ref structs" implementing IDisposable or IAsyncDisposable interfaces (C# 13)

Fixed

  • The analyzer for collection expressions now checks if a collection creation is the only source for the type inference. (#62)