mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Add analyzers for invalid validators
This commit is contained in:
@@ -53,6 +53,13 @@ namespace CliFx.Analyzers
|
||||
"Usage", DiagnosticSeverity.Error, true
|
||||
);
|
||||
|
||||
public static readonly DiagnosticDescriptor CliFx0026 =
|
||||
new DiagnosticDescriptor(nameof(CliFx0026),
|
||||
"Parameter validator must implement 'CliFx.ArgumentValueValidator<T>'",
|
||||
"Parameter validator must implement 'CliFx.ArgumentValueValidator<T>'",
|
||||
"Usage", DiagnosticSeverity.Error, true
|
||||
);
|
||||
|
||||
public static readonly DiagnosticDescriptor CliFx0041 =
|
||||
new DiagnosticDescriptor(nameof(CliFx0041),
|
||||
"Option must have a name or short name specified",
|
||||
@@ -95,6 +102,13 @@ namespace CliFx.Analyzers
|
||||
"Usage", DiagnosticSeverity.Error, true
|
||||
);
|
||||
|
||||
public static readonly DiagnosticDescriptor CliFx0047 =
|
||||
new DiagnosticDescriptor(nameof(CliFx0047),
|
||||
"Option validator must implement 'CliFx.ArgumentValueValidator<T>'",
|
||||
"Option validator must implement 'CliFx.ArgumentValueValidator<T>'",
|
||||
"Usage", DiagnosticSeverity.Error, true
|
||||
);
|
||||
|
||||
public static readonly DiagnosticDescriptor CliFx0100 =
|
||||
new DiagnosticDescriptor(nameof(CliFx0100),
|
||||
"Use the provided IConsole abstraction instead of System.Console to ensure that the command can be tested in isolation",
|
||||
|
||||
Reference in New Issue
Block a user