Skip to content

Commit bc11da8

Browse files
committed
Add link to documentation from analyzers
1 parent 11bc7d1 commit bc11da8

File tree

7 files changed

+28
-7
lines changed

7 files changed

+28
-7
lines changed

System.IO.Abstractions.Analyzers/Analyzers/FileServiceInterfaceInjectionAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public class FileServiceInterfaceInjectionAnalyzer : BaseFileSystemAnalyzer
3434
/// </summary>
3535
private const string Description = "Use System.IO.Abstractions for improved application testability";
3636

37+
private const string Link = "http://bit.ly/2OyHRbq";
38+
3739
/// <summary>
3840
/// Правило
3941
/// </summary>
@@ -43,7 +45,8 @@ public class FileServiceInterfaceInjectionAnalyzer : BaseFileSystemAnalyzer
4345
Category,
4446
DiagnosticSeverity.Warning,
4547
true,
46-
Description);
48+
Description,
49+
Link);
4750

4851
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
4952

System.IO.Abstractions.Analyzers/Analyzers/FileSystemTypeAnalyzers/DirectoryAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class DirectoryAnalyzer : BaseFileSystemNodeAnalyzer
3030
/// </summary>
3131
private const string Description = Title;
3232

33+
private const string Link = "http://bit.ly/2Oz9iSx";
34+
3335
/// <summary>
3436
/// Правило
3537
/// </summary>
@@ -39,7 +41,8 @@ public class DirectoryAnalyzer : BaseFileSystemNodeAnalyzer
3941
Category,
4042
DiagnosticSeverity.Warning,
4143
true,
42-
Description);
44+
Description,
45+
Link);
4346

4447
/// <inheritdoc />
4548
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);

System.IO.Abstractions.Analyzers/Analyzers/FileSystemTypeAnalyzers/DirectoryInfoAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class DirectoryInfoAnalyzer: BaseFileSystemNodeAnalyzer
3030
/// </summary>
3131
private const string Description = Title;
3232

33+
private const string Link = "http://bit.ly/2OCAmQF";
34+
3335
/// <summary>
3436
/// Правило
3537
/// </summary>
@@ -39,7 +41,8 @@ public class DirectoryInfoAnalyzer: BaseFileSystemNodeAnalyzer
3941
Category,
4042
DiagnosticSeverity.Warning,
4143
true,
42-
Description);
44+
Description,
45+
Link);
4346

4447
/// <inheritdoc />
4548
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);

System.IO.Abstractions.Analyzers/Analyzers/FileSystemTypeAnalyzers/FileAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class FileAnalyzer : BaseFileSystemNodeAnalyzer
3030
/// </summary>
3131
private const string Description = Title;
3232

33+
private const string Link = "http://bit.ly/2ODMgdq";
34+
3335
/// <summary>
3436
/// Правило
3537
/// </summary>
@@ -39,7 +41,8 @@ public class FileAnalyzer : BaseFileSystemNodeAnalyzer
3941
Category,
4042
DiagnosticSeverity.Warning,
4143
true,
42-
Description);
44+
Description,
45+
Link);
4346

4447
/// <inheritdoc />
4548
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);

System.IO.Abstractions.Analyzers/Analyzers/FileSystemTypeAnalyzers/FileInfoAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class FileInfoAnalyzer : BaseFileSystemNodeAnalyzer
3030
/// </summary>
3131
private const string Description = Title;
3232

33+
private const string Link = "http://bit.ly/2OAA4tM";
34+
3335
/// <summary>
3436
/// Правило
3537
/// </summary>
@@ -39,7 +41,8 @@ public class FileInfoAnalyzer : BaseFileSystemNodeAnalyzer
3941
Category,
4042
DiagnosticSeverity.Warning,
4143
true,
42-
Description);
44+
Description,
45+
Link);
4346

4447
/// <inheritdoc />
4548
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);

System.IO.Abstractions.Analyzers/Analyzers/FileSystemTypeAnalyzers/FileStreamAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class FileStreamAnalyzer : BaseFileSystemNodeAnalyzer
3030
/// </summary>
3131
private const string Description = Title;
3232

33+
private const string Link = "http://bit.ly/2Oz5MaM";
34+
3335
/// <summary>
3436
/// Правило
3537
/// </summary>
@@ -39,7 +41,8 @@ public class FileStreamAnalyzer : BaseFileSystemNodeAnalyzer
3941
Category,
4042
DiagnosticSeverity.Warning,
4143
true,
42-
Description);
44+
Description,
45+
Link);
4346

4447
/// <inheritdoc />
4548
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);

System.IO.Abstractions.Analyzers/Analyzers/FileSystemTypeAnalyzers/PathAnalyzer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class PathAnalyzer : BaseFileSystemNodeAnalyzer
3030
/// </summary>
3131
private const string Description = Title;
3232

33+
private const string Link = "http://bit.ly/2ODMkKc";
34+
3335
/// <summary>
3436
/// Правило
3537
/// </summary>
@@ -39,7 +41,8 @@ public class PathAnalyzer : BaseFileSystemNodeAnalyzer
3941
Category,
4042
DiagnosticSeverity.Warning,
4143
true,
42-
Description);
44+
Description,
45+
Link);
4346

4447
/// <inheritdoc />
4548
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);

0 commit comments

Comments
 (0)