Skip to content

daniwxcode/GuardX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GuardX

Build Coverage NuGet License: MIT

A lightweight, fast, and analyzers-backed guard/validation library for .NET8.0, with ASP.NET Core extensions and Roslyn analyzers.

Install

dotnet add package GuardX

Quick start

using GuardX;

Guard.Against.Null(arg, nameof(arg));
Guard.Against.NullOrWhiteSpace(name);
Guard.Against.OutOfRange(value,1,10);

ASP.NET Core

// Example placeholder - package `GuardX.AspNetCore`
services.AddGuardX();

Analyzer package

Enable additional diagnostics by referencing GuardX.Analyzers as an analyzer in your project.

<ItemGroup>
 <PackageReference Include="GuardX.Analyzers" Version="[latest]" PrivateAssets="all" />
</ItemGroup>

Contributing

  • Fork the repo and create a feature branch from dev
  • Run dotnet test and ensure coverage stays healthy
  • Submit a PR to dev. We use GitHub Actions for CI and Codecov for coverage

Release

  • Create a tag vX.Y.Z on main and push it. CI will pack src/GuardX and publish to NuGet.org

Maintainer

Daniel WOAGOU (@daniwxcode)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages