Skip to content

Commit 3278946

Browse files
committed
1.0.2-beta2
1 parent ae8f898 commit 3278946

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

WebApiClient.Analyzers/DiagnosticDescriptors.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ static class DiagnosticDescriptors
1111
/// 特性诊断描述器
1212
/// </summary>
1313
public static DiagnosticDescriptor AttributeDescriptor { get; }
14-
= Rule("AC1001", "特性构造函数不匹配", "不支持特性的此构造函数,请使用其它构造函数");
14+
= Rule("WA1001", "不匹配的特性构造函数", "不支持特性的此构造函数,请使用其它构造函数");
1515

1616
/// <summary>
1717
/// 方法返回类型诊断描述器
1818
/// </summary>
1919
public static DiagnosticDescriptor ReturnTypeDescriptor { get; }
20-
= Rule("RT1001", "不支持的返回类型", "返回类型必须为ITask<>或Task<>");
20+
= Rule("WA1002", "不支持的返回类型", "返回类型必须为ITask<>或Task<>");
2121

2222
/// <summary>
2323
/// 引用参数诊断描述器
2424
/// </summary>
2525
public static DiagnosticDescriptor RefParameterDescriptor { get; }
26-
= Rule("RP1001", "不支持ref/out", "参数不支持ref/out等修饰");
26+
= Rule("WA1003", "不支持的ref/out修饰", "参数不支持ref/out等修饰");
2727

2828
/// <summary>
2929
/// 非方法声明诊断描述器
3030
/// </summary>
3131
public static DiagnosticDescriptor NotMethodDefindDescriptor { get; }
32-
= Rule("NM1001", "不支持的非方法声明", "不支持的非方法声明,只允许方法的声明");
32+
= Rule("WA1004", "不支持的非方法声明", "不支持的非方法声明,只允许方法的声明");
3333

3434
/// <summary>
3535
/// 创建诊断描述器

WebApiClient.Analyzers/WebApiClientHtttApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private IEnumerable<AttributeData> GetInterfaceDiagnosticAttributes(ITypeSymbol
207207
{
208208
foreach (var attribuete in interfaceSymbol.GetAttributes())
209209
{
210-
if (this.CtorAttribueIsDefind(attribuete, AttributeCtorTargets.Method) == false)
210+
if (this.CtorAttribueIsDefind(attribuete, AttributeCtorTargets.Interface) == false)
211211
{
212212
yield return attribuete;
213213
}

WebApiClient/WebApiClient.csproj

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)