forked from mkaring/ConfuserEx
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDiagnosticIds.cs
More file actions
21 lines (17 loc) · 938 Bytes
/
Copy pathDiagnosticIds.cs
File metadata and controls
21 lines (17 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace Confuser.Analyzers {
/// <summary>
/// Diagnostic IDs for the ConfuserEx-specific analyzers. Each catches a bug class that has
/// actually been fixed in the codebase, to prevent regressions at compile time.
/// </summary>
internal static class DiagnosticIds {
/// <summary>Imports a member from the host runtime instead of the target's corlib.</summary>
public const string HostRuntimeImport = "CX001";
/// <summary><c>ResolveTypeDef()</c>/<c>ResolveMethodDef()</c> used without a null check.</summary>
public const string UnguardedResolve = "CX002";
/// <summary>Usage of a <c>...Throw</c> resolve helper (audit / awareness).</summary>
public const string ResolveThrowAudit = "CX003";
/// <summary><c>GetTypes()</c> without handling <c>ReflectionTypeLoadException</c>.</summary>
public const string UnhandledReflectionTypeLoad = "CX004";
public const string Category = "ConfuserEx";
}
}