Epsitec.Symbolic.Analyzer
1.16.5.2647
Prefix Reserved
dotnet add package Epsitec.Symbolic.Analyzer --version 1.16.5.2647
NuGet\Install-Package Epsitec.Symbolic.Analyzer -Version 1.16.5.2647
<PackageReference Include="Epsitec.Symbolic.Analyzer" Version="1.16.5.2647"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Epsitec.Symbolic.Analyzer" Version="1.16.5.2647" />
<PackageReference Include="Epsitec.Symbolic.Analyzer"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Epsitec.Symbolic.Analyzer --version 1.16.5.2647
#r "nuget: Epsitec.Symbolic.Analyzer, 1.16.5.2647"
#:package Epsitec.Symbolic.Analyzer@1.16.5.2647
#addin nuget:?package=Epsitec.Symbolic.Analyzer&version=1.16.5.2647
#tool nuget:?package=Epsitec.Symbolic.Analyzer&version=1.16.5.2647
Epsitec.Symbolic.Analyzer
The Epsitec.Symbolic.Analyzer NuGet package provides Roslyn analyzers and code fixes for the Epsitec C# coding conventions. It also generates BusinessAttribute in the projects that reference MSTest, to mark the business tests. It is a development dependency: it runs in the compiler and the IDE, and adds nothing to the runtime dependencies of the project that references it.
<PackageReference Include="Epsitec.Symbolic.Analyzer" Version="<version>" PrivateAssets="all" />
Diagnostics
Every diagnostic is enabled by default. The Fix column marks the diagnostics that come with a code fix.
| Id | Category | Severity | Fix | Title |
|---|---|---|---|---|
SYM0001 |
Epsitec.Style |
Warning | yes | Static member access must be qualified by type name |
SYM0002 |
Epsitec.Style |
Warning | yes | Call expression must have a single space before ( |
SYM0003 |
Epsitec.Style |
Warning | yes | Callable declaration must not have whitespace before ( |
SYM0004 |
Epsitec.Style |
Warning | yes | Control-flow keyword must have a single space before ( |
SYM0005 |
Epsitec.Style |
Warning | yes | No whitespace inside parentheses |
SYM0006 |
Epsitec.Style |
Warning | yes | Comma must be followed by a space |
SYM0007 |
Epsitec.Style |
Warning | no | Record member must use an immutable collection type |
SYM0008 |
Epsitec.Style |
Warning | yes | Await must carry an explicit ConfigureAwait |
SYM0009 |
Epsitec.Style |
Warning | yes | MultiString ambient flattening must use ToDisplayString |
SYM0010 |
Epsitec.Style |
Warning | no | Async void function must be protected by a try/catch |
SYM0011 |
Epsitec.Style |
Warning | yes | Awaitable result must not be dropped |
SYM0012 |
Epsitec.Design |
Error | no | Stable enum member must carry an explicit, distinct value |
SYM0013 |
Epsitec.Style |
Warning | yes | Using directives must be sorted and grouped by root namespace |
SYM0014 |
Epsitec.Style |
Warning | yes | Null check must use is null or is not null |
SYM0015 |
Epsitec.Style |
Warning | yes | Boolean negation must be written == false |
SYM0016 |
Epsitec.Style |
Warning | no | Awaitable must be awaited, not blocked on |
SYM0017 |
Epsitec.Style |
Warning | yes | Event must use EventHandler, not Action |
SYM0018 |
Epsitec.Style |
Warning | no | Global SuppressMessage must carry Scope and Target |
SYM0019 |
Epsitec.Style |
Warning | no | Async function must contain an await |
SYM0020 |
Epsitec.Style |
Warning | yes | Compound condition must parenthesize operands and trail operators |
SYM0021 |
Epsitec.Style |
Warning | no | Non-private member must not return a tuple |
SYM0022 |
Epsitec.Style |
Warning | no | Type must be declared in its own file, named after it |
SYM0023 |
Epsitec.Style |
Warning | yes | Parameter list must put one parameter per line |
SYM0024 |
Epsitec.Style |
Warning | no | Tuple must not type a field or a property, nor be a type argument |
SYM0025 |
Epsitec.Design |
Error | no | Reflection on the model is refused; read the generated descriptors and constants |
SYM0026 |
Epsitec.Design |
Error | no | Business attribute must mark a test method or a test class |
SYM0027 |
Epsitec.Design |
Error | no | Business issue and scenario must be 1 or above |
SYM0028 |
Epsitec.Design |
Error | no | Business arguments must be positional integer literals |
SYM0029 |
Epsitec.Design |
Error | no | TestCategory must not spell a Business or Technical category |
The severity of a diagnostic is changed per path with the Roslyn key dotnet_diagnostic.<id>.severity in .editorconfig, and a site is exempted with #pragma warning disable <id>, like any Roslyn diagnostic.
Configuration
SYM0012applies to the enums marked with an attribute whose full name isEpsitec.Core.Library.StableEnumAttribute: such an enum is persisted, so every member carries an explicit value that no other member shares.SYM0023reads themax_line_lengthof.editorconfigfor the file: a parameter list that ends beyond it, that holds a parameter whose type contains a comma, or that is wrapped puts each parameter on its own line. Without a positive integer value, no length limit applies.SYM0025exempts a project whoseSymbolicAllowReflectionbuild property istrue, and refuses reflection in a project where it is set to any other value. The analyzer sees the property only when the project declares it visible to the compiler:<PropertyGroup> <SymbolicAllowReflection>true</SymbolicAllowReflection> </PropertyGroup> <ItemGroup> <CompilerVisibleProperty Include="SymbolicAllowReflection" /> </ItemGroup>Without a value, the assembly name decides: an assembly whose name ends with
.Tests,.Testor.Testing, starts withTesting., or contains.Tests.or.Reflectionis exempt.
Business tests
A business test pins a behavior that a user of the product observes; every other test is technical. In every project where MSTest's TestCategoryBaseAttribute resolves, the package generates an internal BusinessAttribute in the global namespace: a test writes it with no using, no file and no MSBuild entry. It applies to a test method or a test class, several times if needed, and a mark on a class applies to all its tests.
[Business]emits the categoryBusiness: a business test that cites no scenario.[Business (456, 1)]emits the categoryBusiness.456.S1: the scenario 1 of the issue 456, both numbers unpadded.
A technical test carries no mark. The four diagnostics refuse a malformed mark at compile time:
SYM0026—[Business]on something that is neither a test method nor a test class. A method is a test when it carries an attribute that is or derives fromTestMethodAttribute, a class when it carries one that is or derives fromTestClassAttribute, on any of its partial declarations.SYM0027— an issue or a scenario below 1,0or-1for instance.SYM0028— an argument that is not a positional decimal integer literal: a named argument, a constant, an expression, a hexadecimal or binary literal, a digit separator or a type suffix. The formatter that checks the cited scenario reads the two numbers by their position in the text of the file and resolves no constant.SYM0029— a[TestCategory]whose constant string starts withBusinessorTechnical, whatever its case: mark a business test with[Business], and leave a technical test unmarked.
The categories select the tests with dotnet test --filter:
| Filter | Lists |
|---|---|
TestCategory~Business |
Every business test. |
TestCategory=Business |
The business tests without an issue. |
TestCategory~.456. |
The tests of issue 456, not those of issue 4567. |
TestCategory=Business.456.S2 |
One scenario. |
TestCategory~Business.456.S1 |
Matches S10 too: filter a precise scenario with =. |
TestCategory!~Business |
The technical tests. |
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.16.5.2647 | 51 | 11/21/2026 |
| 1.16.3.2647 | 56 | 11/21/2026 |
| 1.16.2.2647 | 53 | 11/20/2026 |
| 1.16.0.2647 | 60 | 11/17/2026 |
| 1.15.0.2647 | 59 | 11/16/2026 |
| 1.14.14.2646 | 103 | 11/10/2026 |
| 1.14.11.2646 | 87 | 11/9/2026 |
| 1.13.4.2642 | 122 | 10/18/2026 |
| 1.13.2.2642 | 109 | 10/12/2026 |
| 1.11.3.2641 | 116 | 10/6/2026 |
| 1.9.2.2640 | 117 | 9/30/2026 |
| 1.3.0.2638 | 123 | 9/16/2026 |
| 1.0.0.2634 | 148 | 8/23/2026 |
| 0.14.1.2633 | 148 | 8/11/2026 |
| 0.8.0.2622 | 163 | 5/26/2026 |
| 0.7.2.2621 | 132 | 5/26/2026 |