Rhinobyte.CodeAnalysis.NetAnalyzers 1.0.0-preview.6

This is a prerelease version of Rhinobyte.CodeAnalysis.NetAnalyzers.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Rhinobyte.CodeAnalysis.NetAnalyzers --version 1.0.0-preview.6                
NuGet\Install-Package Rhinobyte.CodeAnalysis.NetAnalyzers -Version 1.0.0-preview.6                
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="Rhinobyte.CodeAnalysis.NetAnalyzers" Version="1.0.0-preview.6">
  <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 Rhinobyte.CodeAnalysis.NetAnalyzers --version 1.0.0-preview.6                
#r "nuget: Rhinobyte.CodeAnalysis.NetAnalyzers, 1.0.0-preview.6"                
#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 Rhinobyte.CodeAnalysis.NetAnalyzers as a Cake Addin
#addin nuget:?package=Rhinobyte.CodeAnalysis.NetAnalyzers&version=1.0.0-preview.6&prerelease

// Install Rhinobyte.CodeAnalysis.NetAnalyzers as a Cake Tool
#tool nuget:?package=Rhinobyte.CodeAnalysis.NetAnalyzers&version=1.0.0-preview.6&prerelease                

Rhinobyte.CodeAnalysis.NetAnalyzers

NuGet version (Rhinobyte.CodeAnalysis.NetAnalyzers)

This library contains some custom static code analzyer and code fix providers for .NET

Release 1.0.0.0-preview.6

New Rules

Rule ID Category Severity Notes
RBCS0001 Maintainability Info MembersOrderedCorrectlyAnalyzer, RBCS0001 Documentation
RBCS0002 Maintainability Info MembersOrderedCorrectlyAnalyzer, RBCS0002 Documentation
RBCS0003 Maintainability Info MembersOrderedCorrectlyAnalyzer (Object Initializers), RBCS0003 Documentation
RBCS0004 Maintainability Disabled MembersOrderedCorrectlyAnalyzer (Enum Member Names), RBCS0004 Documentation
RBCS0005 Maintainability Disabled MembersOrderedCorrectlyAnalyzer (Method Parameters), RBCS0005 Documentation
RBCS0010 Maintainability Info UseExplicitNameForOptionalMethodParametersAnalyzer, RBCS0010 Documentation
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

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-preview.8 1,363 8/18/2024
1.0.0-preview.7 314 8/9/2024
1.0.0-preview.6 43 8/8/2024
1.0.0-preview.5 78 8/5/2024
1.0.0-beta.4 37 8/3/2024
1.0.0-beta.3 132 5/21/2022
1.0.0-beta.2 119 5/21/2022
1.0.0-beta.1 122 5/16/2022

v1.0.0.0-preview.6
           - Update analyzer for RBCS0001 to ignore a primary constructor when determining if member groups are ordered correctly
           - Fix bug that would result in a sequence contains no elements exception when the MembersOrderedCorrectlyAnalyzer was run on an enum type declaration
           - Add new rule RBCS0004: Order enum member names alphabetically
           - Add new rule RBCS0005: Order enum member values in ascending order
           
           v1.0.0.0-preview.5
           - Add new rule RBCS0010: Arguments for optional parameters should be passed explicitly by name

           v1.0.0-beta.4
           - Updated nuget package dependencies to latest versions
           - Resolved analyzer warnings for newer analyzer rules
           - Updated the MembersOrderedCorrectlyAnalyzerCodeFixProvider to use a class type in lieu of struct type for sort member key data to reduce possibility of a stack overflow exception in really big files

           v1.0.0-beta.3
           - Fixed the url used in the analzyer rule help links to point to the https://github.com/RhinobyteSoftware/dotnet-tools/blob/main/docs/codeanalysis/rules/ folder
           - Updated the README.md that is included in the package to include the list of rules from the AnalyzerReleases.Shipped.md file and to use absolute urls for the rule docs pointed at the github repo

           v1.0.0-beta.2
           - Updated the MembersOrderedCorrectly analyzer and code fix provider to support configuration via .EditorConfig properties
           - Added new rule RBCS0003: Member assignments in an object initializer are ordered correctly

           v1.0.0-beta.1
           - Added new MembersOrderedCorrectlyAnalyzer and MembersOrderedCorrectlyAnalyzerCodeFixProvider
           with rules RBCS0001: Type members should be ordered by group and RBCS0002: Type members within the same group should be ordered correctly