JRK.JevRunner.Analyzers 0.7.2

dotnet add package JRK.JevRunner.Analyzers --version 0.7.2
                    
NuGet\Install-Package JRK.JevRunner.Analyzers -Version 0.7.2
                    
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="JRK.JevRunner.Analyzers" Version="0.7.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JRK.JevRunner.Analyzers" Version="0.7.2" />
                    
Directory.Packages.props
<PackageReference Include="JRK.JevRunner.Analyzers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JRK.JevRunner.Analyzers --version 0.7.2
                    
#r "nuget: JRK.JevRunner.Analyzers, 0.7.2"
                    
#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.
#:package JRK.JevRunner.Analyzers@0.7.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JRK.JevRunner.Analyzers&version=0.7.2
                    
Install as a Cake Addin
#tool nuget:?package=JRK.JevRunner.Analyzers&version=0.7.2
                    
Install as a Cake Tool

JRK.JevRunner.Analyzers

The main JRK.JevRunner package depends on this package, so NuGet installs the analyzer and code fix automatically. Only this package contains their DLLs; the core and Image packages do not embed duplicate copies. They are compile-time assets, not runtime assemblies. An explicit reference is optional:

dotnet add package JRK.JevRunner.Analyzers

The package contains compile-time analyzers, not runtime assemblies. The analyzer and code fix are packaged together under analyzers/dotnet/cs/, in separate assemblies so the command-line analyzer does not depend on IDE-only Workspaces APIs (RS1038). There are two production projects and one shared test project.

JEV101: Remove redundant backticks

Warns when an IBackTick argument in a FormattableString or IFormattable interpolation has explicit backticks immediately on both sides. JevRunner adds its own backticks when formatting the argument, so the explicit pair duplicates the quoting:

FormattableString incorrect = $"Describe `{field}`."; // JEV101
FormattableString correct = $"Describe {field}.";

The Remove redundant backticks code fix removes just the adjacent pair, preserving the argument, surrounding text, and interpolation type. Normal, verbatim, and raw strings are supported, as are Unicode-escaped backticks. Fix All is supported. Plain string targets still report JEV100 instead.

Repository projects using project references need explicit analyzer references; Playground and JRK.JevRunner.Image include these. Image NuGet consumers receive the tooling through the core package dependency; Image does not bundle it again.

JEV100: Preserve backtick quoting

Warns on each statically typed JRK.JevRunner.IBackTick argument (including StateReference, StatePath, derived types, and constrained type parameters) in an interpolation that becomes a plain string:

StateReference field = new("name");
string incorrect = $"Describe {field}."; // JEV100
FormattableString instructions = $"Describe {field}."; // Preserves arguments
// Pass instructions to JevRunner, or use instructions.Escaped to format it.

FormattableString and IFormattable targets are allowed. Preserving the arguments does not itself quote them; JevRunner's formatting path must still process them. Raw and verbatim interpolations are supported. Values hidden behind object or dynamic, explicit ToString() calls, composite string.Format calls, and custom interpolated-string handlers are outside this initial rule's scope.

The Use Escape.Interpolated code fix changes the entire interpolation to Escape.Interpolated($"Describe {field}."), adding the JevRunner namespace import if needed. This retains a string result while applying quoting. Fix All is supported. The fix is offered when the compatible Escape.Interpolated helper is available in the compilation. The fix starts with a root-qualified helper call, then uses semantic simplification to produce the short name where safe. Namespace or global qualification is retained when needed to avoid shadowed names such as Escape or JRK.

Generic constraints are followed transitively, including class constraints whose base classes or interfaces implement the marker. This applies to both rules.

The rule is a warning by default. Configure or disable it in .editorconfig:

[*.cs]
dotnet_diagnostic.JEV100.severity = none
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JRK.JevRunner.Analyzers:

Package Downloads
JRK.JevRunner

.NET client for Jev and the TypeSafe System One API that supports an approach using source generators.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.2 100 11/9/2026
0.7.1 102 11/5/2026
0.7.1-preview-01 93 11/5/2026

0.7.1: Backtick-aware interpolation diagnostics and code fixes
- Own the usage-analyzer and code-fix assemblies in one package, installed automatically through the JRK.JevRunner dependency.
- JEV100 detects lost automatic quoting in plain strings; its fix wraps the interpolation in Escape.Interpolated.
- JEV101 detects redundant explicit backticks in preserved interpolations; its fix removes only the adjacent pair.
- Recognize generic constraint chains and marker interfaces inherited through class constraints.
- Simplify generated helper qualification where safe while preserving correct binding when local names conflict.