Добавьте файлы проекта.
This commit is contained in:
14
SQLLinter/Infrastructure/Reporters/FileReporter.cs
Normal file
14
SQLLinter/Infrastructure/Reporters/FileReporter.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace SQLLinter.Infrastructure.Reporters;
|
||||
|
||||
public class FileReporter : Reporter
|
||||
{
|
||||
public virtual void SaveReport(string path)
|
||||
{
|
||||
File.WriteAllText(path, GetContent());
|
||||
}
|
||||
|
||||
public virtual string GetContent()
|
||||
{
|
||||
return string.Join(Environment.NewLine, this.Violations);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user