JPSoftworks.CodeTools.Analyzers
1.0.1
dotnet add package JPSoftworks.CodeTools.Analyzers --version 1.0.1
NuGet\Install-Package JPSoftworks.CodeTools.Analyzers -Version 1.0.1
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="JPSoftworks.CodeTools.Analyzers" Version="1.0.1"> <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 JPSoftworks.CodeTools.Analyzers --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JPSoftworks.CodeTools.Analyzers, 1.0.1"
#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 JPSoftworks.CodeTools.Analyzers as a Cake Addin #addin nuget:?package=JPSoftworks.CodeTools.Analyzers&version=1.0.1 // Install JPSoftworks.CodeTools.Analyzers as a Cake Tool #tool nuget:?package=JPSoftworks.CodeTools.Analyzers&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
JPSoftworks.CodeTools.Analyzers
Collection of Roslyn analyzers used in various projects, generalized for re-use in generic projects.
Rules & Analyzers
Rule ID | Description | Category | Severity | Status | Notes |
---|---|---|---|---|---|
JPX0001 | Using new Guid() is ambiguous. |
Design | ⚠️ Warning | ✅ | |
JPX0002 | Using default literal to create a Guid is ambiguous. |
Design | ℹ Information | ✅ | |
JPX0003 | Use EventArgs.Empty instead of new EventArgs() . |
Usage | ⚠️ Warning | 🚀 | |
JPX0004 | Use null-objectpattern instead of creating a new empty object. | Usage | ℹ️ Information | 🚀 | |
JPX0101 | Inherited classes must use a suffix. | Naming | ⚠️ Warning | 🚀 |
Wishlist
Rule ID | Description | Category | Severity | Status | Notes |
---|---|---|---|---|---|
JPX0005 | Use EventHandler delegate for events. |
Design | ⚠️ Warning | 💡 | |
JPX0006 | Use EventArgs.Empty instead of null . |
Design | ⚠️ Warning | 💡 | |
JPX0007 | Use correct sender in event invocation (this for instance, null for static). |
Usage | ⚠️ Warning | 💡 | |
JPX0008 | Shouldn't call Type.GetType() , probably meant GetType() on object instance. |
Usage | ⚠️ Warning | 💡 | |
JPX0009 | Shouldn't return null from async method. | Usage | ⚠️ Warning | 💡 | |
JPX0021 | Use String.Equals instead of == operator. | Usage | ⚠️ Warning | 💡 | |
JPX0022 | Use String.Equals instead of String.Compare(...) == 0. | Usage | ⚠️ Warning | 💡 | |
JPX0023 | Specify case comparison explicitly when comparing strings. | Usage | ⚠️ Warning | 💡 | |
JPX0024 | Specify comparer when creating collection of strings. | Usage | ⚠️ Warning | 💡 | |
JPX0025 | String literal contains zero-width character. | Usage | ⚠️ Warning | 💡 |
Status legend:
- 💡: idea / wishlisted
- 🧪: design
- 🚀: implementation
- 💚: implementation + unit test
- ✅: implementation + unit test + 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.1 | 292 | 12/8/2023 |
Initial release of tools I've used across different projects.