NetFabric.Hyperlinq.Analyzer 2.3.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package NetFabric.Hyperlinq.Analyzer --version 2.3.0
NuGet\Install-Package NetFabric.Hyperlinq.Analyzer -Version 2.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetFabric.Hyperlinq.Analyzer" Version="2.3.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetFabric.Hyperlinq.Analyzer --version 2.3.0
#r "nuget: NetFabric.Hyperlinq.Analyzer, 2.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetFabric.Hyperlinq.Analyzer as a Cake Addin
#addin nuget:?package=NetFabric.Hyperlinq.Analyzer&version=2.3.0

// Install NetFabric.Hyperlinq.Analyzer as a Cake Tool
#tool nuget:?package=NetFabric.Hyperlinq.Analyzer&version=2.3.0

NetFabric.Hyperlinq.Analyzer

A Roslyn Analyzer that contains several rules to help improve enumeration performance when using C#.

Note: This analyzer is independent of NetFabric.Hyperlinq. The rules may be useful when you only use foreach, IEnumerable<T>, IAsyncEnumerable<T>, System.Linq or System.Linq.Async.

Rule ID Category Severity Notes
HLQ001 Performance Warning Assigment to interface causes boxing of enumerator
HLQ002 Compiler Error Enumerable cannot be null.
HLQ003 Performance Warning Public methods should return highest admissible level interface.
HLQ004 Performance Warning The enumerator returns a reference to the item.
HLQ005 Performance Warning Avoid use of Single() and SingleOrDefault()
HLQ006 Performance Warning GetEnumerator() or GetAsyncEnumerator() should return a value type.
HLQ007 Performance Warning Consider returning a non-disposable enumerator.
HLQ008 Performance Info The enumerable is a value type. Consider making it readonly.
HLQ009 Performance Info Consider removing an empty optional enumerator method.
HLQ011 Compiler Error Mutable value-type enumerators cannot be stored in a readonly field.
HLQ012 Performance Warning Consider using CollectionsMarshal.AsSpan() when iterating a List<T>.
HLQ013 Performance Warning Consider using foreach when iterating an array or a Span<T>.
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on NetFabric.Hyperlinq.Analyzer:

Repository Stars
NetFabric/NetFabric.Hyperlinq
High performance LINQ implementation with minimal heap allocations. Supports enumerables, async enumerables, arrays and Span<T>.
mehdihadeli/food-delivery-microservices
🍔 A practical food delivery microservices, built with .Net 7, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
mehdihadeli/food-delivery-modular-monolith
🌭 A practical food delivery modular monolith, built with .Net 7, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
Version Downloads Last updated
2.3.0 4,410 10/13/2023
2.2.0 220 10/11/2023
2.1.0 371 7/26/2023
2.0.4 29,796 7/10/2021
2.0.3 998 4/15/2021
2.0.2 306 4/15/2021
2.0.1 2,686 5/15/2020
2.0.0 525 5/14/2020
1.5.6 515 4/17/2020
1.5.1 563 4/8/2020
1.5.0 612 12/11/2019
1.4.1 623 2/28/2019
1.4.0 538 2/28/2019
1.3.1 561 2/24/2019
1.3.0 526 2/24/2019
1.2.1 534 2/22/2019
1.2.0 547 2/21/2019
1.1.0 600 2/1/2019
1.0.0 754 1/31/2019