Skip to content

Commit a051297

Browse files
Sergey Yaremchenkoinyutin-maxim
authored andcommitted
Обновление сообщений анализатора (#1)
* minor messages update * tabification
1 parent 7371902 commit a051297

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ public class FileServiceInterfaceInjectionAnalyzer : BaseFileSystemAnalyzer
2222
/// <summary>
2323
/// Diagnostic Title
2424
/// </summary>
25-
private const string Title = "For improved application testability, use the IFileSystem.";
25+
private const string Title = "Use System.IO.Abstractions for improved application testability";
2626

2727
/// <summary>
2828
/// Diagnostic Message Format
2929
/// </summary>
30-
public const string MessageFormat = "For improved application testability, use the IFileSystem.";
30+
public const string MessageFormat = "Use System.IO.Abstractions for improved application testability";
3131

3232
/// <summary>
3333
/// Diagnostic Description
3434
/// </summary>
35-
private const string Description = "For improved application testability, use the IFileSystem.";
35+
private const string Description = "Use System.IO.Abstractions for improved application testability";
3636

3737
/// <summary>
3838
/// Правило
@@ -52,7 +52,7 @@ protected override void AnalyzeCompilation(CompilationStartAnalysisContext compi
5252
{
5353
compilationStartContext.RegisterSyntaxNodeAction(syntaxContext =>
5454
{
55-
var constructor = (ConstructorDeclarationSyntax) syntaxContext.Node;
55+
var constructor = (ConstructorDeclarationSyntax)syntaxContext.Node;
5656

5757
var compilationUnitSyntax = GetCompilationUnit(constructor);
5858

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class DirectoryAnalyzer : BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation Directory class shold be replaced with IFileSystem.Directory";
21+
private const string Title = "Replace Directory class with IFileSystem.Directory for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class DirectoryInfoAnalyzer: BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation DirectoryInfo class shold be replaced with IFileSystem.DirectoryInfo";
21+
private const string Title = "Replace DirectoryInfo class with IFileSystem.DirectoryInfo for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class DriveInfoAnalyzer: BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation DriveInfo class shold be replaced with IFileSystem.DriveInfo";
21+
private const string Title = "Replace DriveInfo class with IFileSystem.DriveInfo for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class FileAnalyzer : BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation File class shold be replaced with IFileSystem.File";
21+
private const string Title = "Replace File class with IFileSystem.File for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class FileInfoAnalyzer: BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation FileInfo class shold be replaced with IFileSystem.FileInfo";
21+
private const string Title = "Replace FileInfo class with IFileSystem.FileInfo for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class FileStreamAnalyzer: BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation FileStream class shold be replaced with IFileSystem.FileStream";
21+
private const string Title = "Replace FileStream class with IFileSystem.FileStream for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class FileSystemWatcherAnalyzer: BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation DriveInfo class shold be replaced with IFileSystem.DriveInfo";
21+
private const string Title = "Replace FileSystemWatcher instances with IFileSystem.FileSystemWatcher factory for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class PathAnalyzer : BaseFileSystemNodeAnalyzer
1818
/// <summary>
1919
/// Diagnostic Title
2020
/// </summary>
21-
private const string Title = "Invocation Path class shold be replaced with IFileSystem.Path";
21+
private const string Title = "Replace Path class with IFileSystem.Path for improved testablity";
2222

2323
/// <summary>
2424
/// Diagnostic Message Format

0 commit comments

Comments
 (0)