< Summary

Information
Class: NexusLabs.Needlr.SignalR.Analyzers.DiagnosticDescriptors
Assembly: NexusLabs.Needlr.SignalR.Analyzers
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.SignalR.Analyzers/DiagnosticDescriptors.cs
Line coverage
100%
Covered lines: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 38
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.SignalR.Analyzers/DiagnosticDescriptors.cs

#LineLine coverage
 1using Microsoft.CodeAnalysis;
 2
 3namespace NexusLabs.Needlr.SignalR.Analyzers;
 4
 5/// <summary>
 6/// Diagnostic descriptors for SignalR-specific Needlr analyzers.
 7/// </summary>
 8public static class DiagnosticDescriptors
 9{
 10    private const string Category = "NexusLabs.Needlr.SignalR";
 11    private const string HelpLinkBase = "https://github.com/nexus-labs/needlr/blob/main/docs/analyzers/";
 12
 13    /// <summary>
 14    /// NDLRSIG001: HubPath must be a constant expression for AOT compatibility.
 15    /// </summary>
 116    public static readonly DiagnosticDescriptor HubPathMustBeConstant = new(
 117        id: DiagnosticIds.HubPathMustBeConstant,
 118        title: "HubPath must be a constant",
 119        messageFormat: "HubPath '{0}' must be a constant expression for AOT compatibility",
 120        category: Category,
 121        defaultSeverity: DiagnosticSeverity.Warning,
 122        isEnabledByDefault: true,
 123        description: "The HubPath parameter of HubPathAttribute must be a compile-time constant string for AOT compatibi
 124        helpLinkUri: HelpLinkBase + "NDLRSIG001.md");
 25
 26    /// <summary>
 27    /// NDLRSIG002: HubType must be a typeof expression for AOT compatibility.
 28    /// </summary>
 129    public static readonly DiagnosticDescriptor HubTypeMustBeTypeOf = new(
 130        id: DiagnosticIds.HubTypeMustBeTypeOf,
 131        title: "HubType must be a typeof expression",
 132        messageFormat: "HubType must be a typeof expression, not '{0}'",
 133        category: Category,
 134        defaultSeverity: DiagnosticSeverity.Warning,
 135        isEnabledByDefault: true,
 136        description: "The HubType parameter of HubPathAttribute must be a typeof expression for AOT compatibility.",
 137        helpLinkUri: HelpLinkBase + "NDLRSIG002.md");
 38}

Methods/Properties

.cctor()