Waffle.Analyzer
1.0.1
dotnet add package Waffle.Analyzer --version 1.0.1
NuGet\Install-Package Waffle.Analyzer -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="Waffle.Analyzer" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Waffle.Analyzer" Version="1.0.1" />
<PackageReference Include="Waffle.Analyzer" />
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 Waffle.Analyzer --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Waffle.Analyzer, 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.
#:package Waffle.Analyzer@1.0.1
#: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=Waffle.Analyzer&version=1.0.1
#tool nuget:?package=Waffle.Analyzer&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Waffle.Analyzer
A Roslyn analyzer for the Waffle template engine that detects template syntax errors at compile time.
Diagnostics
Block structure
| ID | Severity | Description | Example |
|---|---|---|---|
| WAF001 | Error | A For, Forr, ForEach, ForEachNullable, or If block has no matching End |
{{For(0, 3, out var i)}} (without {{End}} ) |
| WAF002 | Error | End has no matching opening block |
{{End}} without a preceding For/ForEach/If |
Variable scope
| ID | Severity | Description | Example |
|---|---|---|---|
| WAF003 | Error | A variable declared with out var in a For/ForEach block is referenced after the block's End |
{{For(0, 3, out var i)}}{{End}}{{i}} |
If block structure
| ID | Severity | Description | Example |
|---|---|---|---|
| WAF004 | Error | Elif or Else appears outside an If block (or inside a For/ForEach block directly) |
{{Elif(...)}} (with no enclosing {{If(...)}}) |
| WAF005 | Error | An If block contains more than one Else |
{{If(...)}}{{Else}}{{Else}}{{End}} |
| WAF006 | Error | Elif appears after Else in the same If block |
{{If(...)}}{{Else}}{{Elif(...)}}{{End}} |
Iteration control
| ID | Severity | Description | Example |
|---|---|---|---|
| WAF007 | Error | Break or Continue is used outside a For/ForEach block |
{{Break}} (with no enclosing {{For(...)}}) |
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- 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 | 58 | 6/10/2026 |