RuntimeContracts.Analyzer 0.3.2

Set of roslyn-based analyzers for RuntimeContracts library.

Install-Package RuntimeContracts.Analyzer -Version 0.3.2
dotnet add package RuntimeContracts.Analyzer --version 0.3.2
<PackageReference Include="RuntimeContracts.Analyzer" Version="0.3.2">
  <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 RuntimeContracts.Analyzer --version 0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuntimeContracts.Analyzer, 0.3.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install RuntimeContracts.Analyzer as a Cake Addin
#addin nuget:?package=RuntimeContracts.Analyzer&version=0.3.2

// Install RuntimeContracts.Analyzer as a Cake Tool
#tool nuget:?package=RuntimeContracts.Analyzer&version=0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

0.3.2
               * Add a fixer to switch awayt from Contract.RequiresNotNull and Contract.AssertNotNull
           0.3.1
               * Fix performance issues (thanks to Sam Harwell)
           0.3.0
               * Add side-by-side fluent API and analyzers that can be used with the existing contracts.
           0.2.1
               * Add an analyzer to warn for a stand alone `Contract.AssertFailure` calls.
               * `AssertFailure` always fail even without `throw`.
           0.2.0
               * Add fixer to use fluent API
           0.1.11.0
               * Fixer to automatically generate assertion messages.

           0.1.10.0
           * Convert `Contract.Assume(x != null)` to `Contract.AssertNotNull(x)`.
           * Stop simplifying null-check postconditions.

           0.1.9.4
           * Add assertions to support not-nullable reference types.
           * Make RA003 informational by default.
           * Roll back to roslyn v. 2.10.0

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RuntimeContracts.Analyzer:

Package Downloads
RuntimeContracts
Lightweight runtime-only library for contract validation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.3.2 2,865 1/29/2021
0.3.0 100,937 3/25/2020
0.2.1 238 3/17/2020
0.2.0 191 3/17/2020
0.1.11 281 3/6/2020
0.1.10 644 3/3/2020
0.1.9.4 3,511 10/22/2019
0.1.9.2 211 10/21/2019
0.1.9.1 199 10/21/2019
0.1.9 199 10/21/2019
0.1.8 648 10/29/2018
0.1.7.1 7,338 10/17/2018
0.1.7 384 10/17/2018
0.1.6 26,250 9/6/2018